Skip to content

php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.

License

Notifications You must be signed in to change notification settings

ag-php/exif-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-exif-tools

php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.

Example

Read meta-data:

use Taco\Tools\Exif;
use SplFileInfo;

(new Exif\ExifReader)->read(new SplFileInfo('file.jpeg')) == (object)[
	'mime' => 'image/jpeg',
	'title' => 'Salut',
	'datetime' => new DateTime('2019-02-23 21:20:00'),
	'orientation' => 3,
];

Write meta-data:

use Taco\Tools\Exif;
use SplFileInfo;

(new Exif\ExifWrite(new SplFileInfo('file.jpeg'))->write([
	ExifWriter::SECTION_TITLE => 'Salut',
]));

About

php-exif-tools is a simple library for manipulate (read and write) with the EXIF meta-data of an image.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%