Skip to content

PHP script that can update and read date information from an image file

Notifications You must be signed in to change notification settings

jonathanbell/photo-metadata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

photo-metadata

A PHP script that can update and read date metadata information from an image file.

Usage

php photo-metadata [--read | --read-date | --write-date] [http://example.com/path/to/image.[jpg|JPG|png] | /local/path/to/image.[jpg|JPG|png] [yearmmdd]]

Examples

Get information about an image file on the Internet:

php photo-metadata --read http://example.com/path/to/image.[jpg|JPG|png]

Get information about an image on the local hard disk:

php photo-metadata --read /path/to/image.[jpg|JPG|png]

Get the date an image was shot from a file on the Internet:

php photo-metadata --read-date http://example.com/path/to/image.[jpg|JPG|png]

Get the date an image was shot from a file on the local hard disk:

php photo-metadata --read-date /path/to/image.[jpg|JPG|png]

Write (or overwrite) IPTC date to a local image file:

# NOTE: Pass the date param in the form: 20170101 (yearmmdd)
# Currently, this parameter is not validated.
php photo-metadata --write-date /path/to/image.[jpg|JPG|png] 20170101

Requirements

Requires, basically, just PHP. The --remove-data option requires Imagick.

About

PHP script that can update and read date information from an image file

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages