I having some problems with an image that has EXIF/IPTC data stored in it.
When I use imageCreateFromJpeg
(to rotate/crop or etc) the newly stored file doesn't preserve the EXIF/IPTC data.
My current code looks like this:
<?php
// Before executing - EXIF/IPTC data is there (checked)
$image = "/path/to/my/image.jpg";
$source = imagecreatefromjpeg($image);
$rotate = imagerotate($source,90,0);
imageJPEG($rotate,$image);
// After executing - EXIF/IPTC data doesn't exist anymore.
?>
Am I doing something wrong?
question from:
https://stackoverflow.com/questions/66067467/php-upload-file-exif-and-thumbnails 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…