#24757 [Opn->Fbk]: imagerotate() chops image

From: Date: Wed, 23 Jul 2003 22:15:47 +0000
Subject: #24757 [Opn->Fbk]: imagerotate() chops image
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-44617@lists.php.net to get a copy of this message
 ID:               24757
 Updated by:       iliaa@php.net
 Reported By:      jiho at ncsdo dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: mac os x
 PHP Version:      4.3.2
 New Comment:

Does this happen with any image, or any image? If prior is the case
please supply the image.


Previous Comments:
------------------------------------------------------------------------

[2003-07-23 14:17:21] jiho at ncsdo dot com

i also noticed that a lot of the EXIF info gets wiped 
off

------------------------------------------------------------------------

[2003-07-23 08:43:46] 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-22 15:36:58] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24757&edit=1



Thread (6 messages)

« previous php.bugs (#44617) next »