#24757 [Fbk->Opn]: imagerotate() chops image
ID: 24757
User updated by: jiho at ncsdo dot com
Reported By: jiho at ncsdo dot com
-Status: Feedback
+Status: Open
Bug Type: GD related
Operating System: mac os x
PHP Version: 4.3.2
New Comment:
i also noticed that a lot of the EXIF info gets wiped
off
Previous Comments:
------------------------------------------------------------------------
[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)