|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-19 16:11 UTC] pajoye@php.net
-Status: Open
+Status: Feedback
[2014-01-19 16:11 UTC] pajoye@php.net
[2014-12-30 10:42 UTC] php-bugs at lists dot php dot net
[2015-09-12 11:23 UTC] nicolas33thomas at gmail dot com
[2015-09-12 13:50 UTC] requinix@php.net
-Status: No Feedback
+Status: Re-Opened
-Type: Bug
+Type: Feature/Change Request
[2015-09-12 13:50 UTC] requinix@php.net
[2015-09-12 15:39 UTC] nicolas33thomas at gmail dot com
[2016-10-07 22:38 UTC] cmb@php.net
-Summary: getimagesize() function is returning swaped values of
height and width.
+Summary: getimagesize() should cater to orientation flag
[2025-01-27 13:23 UTC] cmb@php.net
[2025-01-27 13:23 UTC] cmb@php.net
-Status: Re-Opened
+Status: Wont fix
-Assigned To:
+Assigned To: cmb
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 11:00:01 2025 UTC |
Description: ------------ My objective is to upload an image and then to create a new image with some other 'width X height' resizing parameters. Original image has uploaded successfully, but when i am using getimagesize('local path of original uploaded image') it is returning wrong values. And this function is not working only for images of dimension '1836 X 3264' original image dimension : 1836 X 3264 and when using getimagesize() for the image it returns Array ( [0] => 3264 [1] => 1836 [2] => 2 [3] => width="3264" height="1836" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Same as Bug #29424. but i am unsing PHP 5.4.3 and bug reporter was using PHP 5.0.0 Test script: --------------- $source_image_path = '../sysimages/origimage/20131109_151445.jpg'; $arrrrr = getimagesize($source_image_path); print("<pre>arrrrr :: "); print_r($arrrrr); print("</pre>"); Expected result: ---------------- Array ( [0] => 1836 [1] => 3264 [2] => 2 [3] => width="1836" height="3264" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Actual result: -------------- Array ( [0] => 3264 [1] => 1836 [2] => 2 [3] => width="3264" height="1836" [bits] => 8 [channels] => 3 [mime] => image/jpeg )