ID: 32645 Updated by: [EMAIL PROTECTED] Reported By: smckenna at clanlineage dot com -Status: Open +Status: Bogus Bug Type: GetImageSize related Operating System: Linux PHP Version: 4.3.10 New Comment:
As the message says: Your stream doesn't support seeking so you need a stream_seek method... http://de2.php.net/stream_wrapper_register Previous Comments: ------------------------------------------------------------------------ [2005-04-09 19:34:30] smckenna at clanlineage dot com Description: ------------ Purpose: upload images, store in db, write to PDF. Problem: some JPEGs consistently fail on a getimagesize() Error: "Warning: getimagesize(): stream does not support seeking in /www/phototest.php on line 47" Replicable: Yes. I receive the same results on RedHat9 with PHP 4.3.10 and Debian (Sarge) with PHP 4.3.10-9 Config changes: I can only specify the Debian setup. Fresh setup, only the document root changed. Test photos came from the same camera and were taken within minutes of each other. Photos are available at: Error http://www.clanlineage.com/temp/IMG_0086.JPG (132kb) Success http://www.clanlineage.com/temp/IMG_0087.JPG (113kb) The included class is from other authors, so I have credited them in the code. Reproduce code: --------------- http://www.clanlineage.com/temp/phototest.txt (2kb) Expected result: ---------------- Using JPEG image IMG_0087.JPG Array ( [0] => 1024 [1] => 768 [2] => 2 [3] => width="1024" height="768" [bits] => 8 [channels] => 3 [mime] => image/jpeg ) Actual result: -------------- Using JPEG image IMG_0086.JPG Warning: getimagesize(): stream does not support seeking in /www/phototest.php on line 47 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32645&edit=1