Copy an image and preserve its EXIF/IPTC data with PHP imageCreateFromJpeg?
问题 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