News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

James Morris' Blog:
How to Strip EXIF Data Using Imagick
August 25, 2011 @ 10:42:33

James Morris has a quick tutorial today showing how to pull the exif data from a photo and make it into something useful you can either display on on the site or store for categorization.

Today I spent a good amount of time trying to figure out how to strip exif data from an image using Imagick. The first port of call was the (pathetic) documentation at php.net. I searched for 'exif' but found nothing. [...] I was tipped off by a colleague to the method Imagick::stripImage() which apparently did what I wanted. The only mention of exif is in a rather helpful comment at the bottom of the page.

This comment pointed him to the Imagick::stripImage() function that pulls off the data and returns exif information (or, as the documentation calls it, "profiles and comments"). His seven line script is included in the post that initializes the Imagick object, pulls in the file and runs the stripImage() method with the option for "exif:*". The resulting properties are then displayed including aperature value, date taken, exposure time, make and model of the camera, shutter speed, resolution and much more.

0 comments voice your opinion now!
tutorial image exif data imagick stripimage


blog comments powered by Disqus

Similar Posts

IBM developerWorks: U2 PDO Driver Tutorial, Parts 1 & 2

PHPBuilder.com: An Introduction to Graphs Using PEAR\'s Image_Graph Package

AOL Developer Network: A Primer for OpenID with PHP

PHPMaster.com: Openbiz Cubi: A Robust PHP Application Framework, Part 2

SitePoint.com: Create Dynamic Images with ImageMagick


Community Events











Don't see your event here?
Let us know!


threedevsandamaybe hhvm facebook framework package unittest composer series symfony2 hack release application code language opinion podcast security install introduction component

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework