#19817 [Fbk->Opn]: ImageCreateFromGD2() doesnt recognize uncompressed .gd2 images
| From: | sprice at wisc dot edu | Date: | Thu, 06 Feb 2003 00:50:47 +0000 |
| Subject: | #19817 [Fbk->Opn]: ImageCreateFromGD2() doesnt recognize uncompressed .gd2 images | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-32255@lists.php.net to get a copy of this message | ||
ID: 19817
User updated by: sprice@wisc.edu
Reported By: sprice@wisc.edu
-Status: Feedback
+Status: Open
Bug Type: Feature/Change Request
Operating System: Darwin 6.1 (Mac 10.2.1)
PHP Version: 4CVS-2002-10-08
New Comment:
Nope, it still dosen't work with either compressed or uncompressed
images. I am using GD 2.0.11 to produce the GD2 images. You guys should
sync up with the current GD so I can try using it, instead.
Previous Comments:
------------------------------------------------------------------------
[2003-02-05 10:58:23] 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
------------------------------------------------------------------------
[2002-10-29 21:40:12] rasmus@php.net
This is more of a feature request. As far as I know nobody is working
on it. I certainly don't need this functionality. Feel free to submit
a patch.
------------------------------------------------------------------------
[2002-10-29 21:38:19] sprice@wisc.edu
Problem still exists using latest CVS snap and GD 2.0.4. (I thought I
would mention it 'cause I have seen lots of GD work being done in
both.)
------------------------------------------------------------------------
[2002-10-19 21:06:21] sprice@wisc.edu
FYI: this bug still exists in the latest CVS snapshot.
------------------------------------------------------------------------
[2002-10-11 06:15:54] mfischer@php.net
Did test http://144.92.10.251/riverdata/images/uncompressed_med.gd2
and
got the following:
$ php 19817.php
Error from seek: 25
Warning: imagecreatefromgd2part()
[http://www.php.net/function.imagecreatefromgd2part]:
'uncompressed_med.gd2' is not a valid GD2 file in
/home/mfischer/src/php/bugs/gd/19817.php on line 7
/home/mfischer/src/php/bugs/gd/19817.php(7) : Warning -
imagecreatefromgd2part()
[http://www.php.net/function.imagecreatefromgd2part]:
'uncompressed_med.gd2' is not a valid GD2 file
Warning: imagecopy(): supplied argument is not a valid Image resource
in /home/mfischer/src/php/bugs/gd/19817.php on line 10
/home/mfischer/src/php/bugs/gd/19817.php(10) : Warning - imagecopy():
supplied argument is not a valid Image resource
Warning: imagedestroy(): supplied argument is not a valid Image
resource in /home/mfischer/src/php/bugs/gd/19817.php on line 11
/home/mfischer/src/php/bugs/gd/19817.php(11) : Warning -
imagedestroy(): supplied argument is not a valid Image resource
PNG
IHDR vpkIDATxí×1 À°Ïà¢$ [binary scumm]
The interesting thing I think is "Error from seek: 25" which actually
comes from the bundled libgd from libgd/gd_gd2.c from
gdImageCreateFromGd2PartCtx, line 584:
if (gdSeek (in, dpos) != 0)
{
printf ("Error from seek: %d\n", errno);
goto fail2;
};
Error code 25 means "Inappropriate ioctl for device", no idea why this
happens though.
Maybe a problem related from mixing PHP Streams and native access to
FILE fd's ?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19817
--
Edit this bug report at http://bugs.php.net/?id=19817&edit=1