Webmastersite.net
Register Log In

thumbnail.php problems
Problem with thumbnail.php and gif images

Comments on thumbnail.php problems

tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jan 06, 2005 - 5:55 PM:

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
Quantum
Forum Regular

Usergroup: Member
Joined: Jul 01, 2003

Total Topics: 38
Total Comments: 164
Quantum
Posted Jan 07, 2005 - 6:30 AM:

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.
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jan 07, 2005 - 9:41 AM:

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.
Quantum
Forum Regular

Usergroup: Member
Joined: Jul 01, 2003

Total Topics: 38
Total Comments: 164
Quantum
Posted Jan 08, 2005 - 8:46 AM:

Shows what I know . Thanks. Nice to know.
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 10, 2005 - 11:46 AM:

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.
tradenet
Forum Regular

Usergroup: Customer
Joined: Oct 14, 2004

Total Topics: 54
Total Comments: 127
Posted Jan 11, 2005 - 8:34 AM:

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.

Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jan 13, 2005 - 8:41 AM:

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.
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.