Forum Moderators: coopster
// 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); Imagick
Array
(
[FILE] => Array
(
[FileName] => test.jpg
[FileDateTime] => 1347469943
[FileSize] => 398
[FileType] => 2
[MimeType] => image/jpeg
[SectionsFound] =>
)
[COMPUTED] => Array
(
[html] => width="300" height="200"
[Height] => 200
[Width] => 300
[IsColor] => 0
)
)