I'm getting this when tying to use a gif image: The image “http://www.mydomain.com//thumbnail.php?id=5&thumbwidth=65&thumbheight=65†cannot be displayed, because it contains errors.
Looking at the html source:
Warning: imagecreatefrompng(templates/default/images/gif.png): failed to open stream: No such file or directory in ~/classes/gd.php on line 189
Warning: imagecreatefrompng(templates/default/images/nothumbnail.png): failed to open stream: No such file or directory in ~/classes/gd.php on line 190
Warning: imagesx(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 191
Warning: imagesy(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 192
Warning: Division by zero in ~/classes/gd.php on line 193
Warning: Division by zero in ~/classes/gd.php on line 193
Warning: imagejpeg(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 211
jpegs are not a problem.
Links V3.13 Server Type: Apache/2.0.52 (Gentoo/Linux) PHP/4.3.10
I think it's because GIF is a proprietary format which isn't supported by Imagemagick. You could try searching for that in Google. Otherwise Paul will know.
Quantum wrote: I think it's because GIF is a proprietary format which isn't supported by Imagemagick. You could try searching for that in Google. Otherwise Paul will know.
Yes, if you want thumbnails of GIF images, use ImageMagick. GD may be able to do it in future years, but most PHP versions still don't appear to support it.
0/5
1
2
3
4
5
This thread is closed, so you cannot post a reply.
Comments on thumbnail.php problems
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
I'm getting this when tying to use a gif image:
The image “http://www.mydomain.com//thumbnail.php?id=5&thumbwidth=65&thumbheight=65†cannot be displayed, because it contains errors.
Looking at the html source:
Warning: imagecreatefrompng(templates/default/images/gif.png): failed to open stream: No such file or directory in ~/classes/gd.php on line 189
Warning: imagecreatefrompng(templates/default/images/nothumbnail.png): failed to open stream: No such file or directory in ~/classes/gd.php on line 190
Warning: imagesx(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 191
Warning: imagesy(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 192
Warning: Division by zero in ~/classes/gd.php on line 193
Warning: Division by zero in ~/classes/gd.php on line 193
Warning: imagejpeg(): supplied argument is not a valid Image resource in ~/classes/gd.php on line 211
jpegs are not a problem.
Links V3.13
Server Type: Apache/2.0.52 (Gentoo/Linux) PHP/4.3.10
Forum Regular
Usergroup: Member
Joined: Jul 01, 2003
Total Topics: 38
Total Comments: 164
I think it's because GIF is a proprietary format which isn't supported by Imagemagick. You could try searching for that in Google. Otherwise Paul will know.
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
Actually GD2 has been released with GIF support.
The patent GIF expired world-wide on July 7th, 2004.
http://my2.php.net/manual/en/function.imagegif.php
Quantum wrote:
I think it's because GIF is a proprietary format which isn't supported by Imagemagick. You could try searching for that in Google. Otherwise Paul will know.
Forum Regular
Usergroup: Member
Joined: Jul 01, 2003
Total Topics: 38
Total Comments: 164
Shows what I know . Thanks. Nice to know.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Quantum wrote:
I think it's because GIF is a proprietary format which isn't supported by Imagemagick.
ImageMagick supports just about every format, including GIF.
Forum Regular
Usergroup: Customer
Joined: Oct 14, 2004
Total Topics: 54
Total Comments: 127
So what are you saying? Should I be using ImageMagick for a work around to this problem instead of GD?
Paul wrote:
ImageMagick supports just about every format, including GIF.
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
Yes, if you want thumbnails of GIF images, use ImageMagick. GD may be able to do it in future years, but most PHP versions still don't appear to support it.