php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24757 imagerotate() chops image
Submitted: 2003-07-22 15:36 UTC Modified: 2003-07-28 05:33 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:2 (100.0%)
Same OS:0 (0.0%)
From: jiho at ncsdo dot com Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.3.2 OS: mac os x
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2003-07-22 15:36 UTC] jiho at ncsdo dot com
Description:
------------
hi
when the img is vertical(img_y > img_x) and exectue -90 
on imagerotate.. it chops off some of the image on the 
left side.. other angle (90, 180, -180) seems to work 
fine in any format(vertical and horizontal) only when 
the img is vertical with -90

Reproduce code:
---------------
$rotate_degree = "-90";
$src_photo = imagecreatefromjpeg( $img_jpg );
    
$src_photo_rotate = imagerotate($src_photo,$rotate_degree, 0);

   
imagejpeg($src_photo_rotate, $dir_name, "100");

Expected result:
----------------
i accept to see it rotate perfectly without the rotated 
img to be chopped off. :D

Actual result:
--------------
the img gets chopped off on the left hand side

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-07-23 08:43 UTC] iliaa@php.net
Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

Seems to work perfectly in latest CVS.
 [2003-07-23 14:17 UTC] jiho at ncsdo dot com
i also noticed that a lot of the EXIF info gets wiped 
off
 [2003-07-23 17:15 UTC] iliaa@php.net
Does this happen with any image, or any image? If prior is the case please supply the image.
 [2003-07-23 17:52 UTC] sniper@php.net
Did you try the snapshot or not?

 [2003-07-28 05:33 UTC] sniper@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Apr 27 21:01:29 2024 UTC