#24612 [Opn->Fbk]: getimagesize('test.jpg', $info) fails (only when 2nd parameter is used)
| From: | sniper@php.net | Date: | Mon, 14 Jul 2003 17:15:35 +0000 |
| Subject: | #24612 [Opn->Fbk]: getimagesize('test.jpg', $info) fails (only when 2nd parameter is used) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-43963@lists.php.net to get a copy of this message | ||
ID: 24612
Updated by: sniper@php.net
-Summary: Getimagesize fails on IM 5.4.6 created jpegs
Reported By: pekka at studio-on-the dot net
-Status: Open
+Status: Feedback
Bug Type: GetImageSize related
Operating System: Windows XP Professional SP1
PHP Version: 4.3.2
New Comment:
Did you try with the snapshot?
Previous Comments:
------------------------------------------------------------------------
[2003-07-14 04:02:12] pekka at studio-on-the dot net
The url on demo is url for obvious reasons. On my localhost with local
files I get bitten by this bug. One thing to note is that in Windows
when you do NOT add second parameter to getimagesize then it always
works. But I need that second parameter too, so...
Must be something Bill has messed up.
Thanks anyway.
------------------------------------------------------------------------
[2003-07-13 22:00:58] sniper@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
Works just fine. Not even 10'000 tries produce any false result. It's
propably just some network thing, as you're accessing the image
remotely. Try it locally. (drop the url)
------------------------------------------------------------------------
[2003-07-11 15:51:58] pekka at studio-on-the dot net
it should be of course
Actual result:
--------------
e.g. (in Windows):
try 433: | 0:110 | 1: 73 | 2: 2 | 3: width="110" height="73"|
------------------------------------------------------------------------
[2003-07-11 15:33:22] pekka at studio-on-the dot net
Description:
------------
Code snippet http://www.exhibitserver.com/getimagesizetest.php
works
perfectly on Linux/apache (PHP 4.2.2), but in Windows XP/Apache/PHP
4.3.2 even 1000 times is not always enough to get some data back from
the function. Mostly it needs between 0 and 200 retries before it gets
some data into array.
I have found that this happens and has something to do ONLY with
ImageMagick Mogrify created JPGS (Version: @(#)ImageMagick 5.4.6
06/01/02 Q:8). See aforementioned demo for test image url.
Reproduce code:
---------------
http://www.exhibitserver.com/getimagesizetest.php
Expected result:
----------------
try 0: | 0:110 | 1: 73 | 2: 2 | 3: width="110" height="73"|
Actual result:
--------------
nothing,
or
try 0: | 0:110 | 1: 73 | 2: 2 | 3: width="110" height="73"|
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=24612&edit=1