From: bertrand dot bourgier at free dot fr Operating system: Windows 2000 Pro PHP version: 5.0.0 PHP Bug Type: GetImageSize related Bug description: Width and Height inverted for JPEG2000 files
Description: ------------ Take a JPEG2000 file (indifferently JPC or JP2 format). JPC format sample file: http://www.crc.ricoh.com/~gormish/jpeg2000conformance/J2KP4files/codestreams_profile0/p0_04.j2k JP2 format sample file: http://www.crc.ricoh.com/~gormish/jpeg2000conformance/J2KP4files/testfiles_jp2/file1.jp2 I downloaded those 2 files so that I can do my tests locally and avoid any network related issue. Then, when I run 'getimagesize' on those JPEG2000 files, I get a result, but the Width and Height information are inverted. Reproduce code: --------------- Test 1: <?php list($width, $height, $type, $attr) = getimagesize("p0_04.j2k"); echo "Width: $width<BR>Height: $height"; ?> Test 2: <?php list($width, $height, $type, $attr) = getimagesize("file1.jp2"); echo "Width: $width<BR>Height: $height"; ?> Expected result: ---------------- Test 1: Width: 640 Height: 480 Test 2: Width: 768 Height: 512 Actual result: -------------- Test 1: Width: 480 Height: 640 Test 2: Width: 512 Height: 768 As you can see, Width and Height are inverted. -- Edit bug report at http://bugs.php.net/?id=29424&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29424&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=29424&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=29424&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29424&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29424&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29424&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29424&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29424&r=support Expected behavior: http://bugs.php.net/fix.php?id=29424&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29424&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29424&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29424&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29424&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29424&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29424&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29424&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29424&r=float