I am using PHP Version 5.3.14 compiled with ImageMagick 6.7.6-3.
I would eventually like to geotag the thumbnails my script creates using the correct exif data, but right now I am having a very difficult time just writing any exif data.
// The following is directly from PHP's website $image = new Imagick(); $image->newImage(300, 200, "black"); $image->setImageProperty('Exif:Make', 'Imagick'); echo $image->getImageProperty('Exif:Make'); // The page does display "Imagick"
// Now I'm writing the image I just created to my hard drive and freeing my memory. $image->writeImage("test.jpg"); $image->destroy();
// Now I'm displaying the exif data of the saved image $exif = exif_read_data("test.jpg", 0, true); print_r($exif);
In spite of the examples in the documentation, I don't think that ImageMagik really writes EXIF data to the image. In your example, it's just saving a loading a property with "Exif" in the name, but not actually saving it in EXIF format.