php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #25430 GD: Lost EXIF data when using imagerotate()
Submitted: 2003-09-08 07:41 UTC Modified: 2003-09-10 18:28 UTC
Votes:3
Avg. Score:4.7 ± 0.5
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: bzrudi at tuxpower dot de Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 4.3.3 OS: *
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bzrudi at tuxpower dot de
New email:
PHP Version: OS:

 

 [2003-09-08 07:41 UTC] bzrudi at tuxpower dot de
Description:
------------
I use the imagerotate() function in my photo gallery to rotate 
the images (if there is no support for "convert"). What I find out 
is, that after rotating ALL EXIF data is lost. I guess this is not 
the desired behavior ;-)  

Reproduce code:
---------------
$img2rotate="some_image.jpg";
$image=imagecreatefromjpeg("$img2rotate");
$rotated_img=imagerotate($image, 90, 0);
imagejpeg($rotated_img, "$img2rotate", 100);

Expected result:
----------------
I expect to keep the EXIF data from the original image... 

Actual result:
--------------
ALL EXIF data is lost.  

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-09-10 18:28 UTC] helly@php.net
We will not change this in GD.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 11:01:34 2025 UTC