Jump to content

GD Library Help


mcmuney

Recommended Posts

Is this the right place for this question? I have a image upload script that uploads images and renames all files and give it a .jpg extension. I'm using GD Library, which creates thumbnails. For the most part, it works. The problem arises when an animated GIF is uploaded. The image uploads fine and the file is renamed with .jpg extension and you can view the file as normal. The issue comes into play when the thumbnail is generated, it creates 1-20 thumbnails. Here's an example:

 

THIS IS THE NORMAL PROCESS:

Actual Image File Uploaded: abc.jpg

Renamed by Script and Stored on Server: 1.jpg

Thumb Create by GD Library: 1-85x66-filled-enlarged.jpg

 

PROBLEM AREA:

Actual Image File Uploaded: abcD.gif

Renamed by Script and Stored on Server: 2.gif

Thumb Create by GD Library: (this will result in the following thumbs anywhere from 1-20 thumbs)

2-85x66-filled-enlarged-0.jpg

2-85x66-filled-enlarged-1.jpg

2-85x66-filled-enlarged-2.jpg

2-85x66-filled-enlarged-3.jpg

2-85x66-filled-enlarged-4.jpg

 

But it doesn't create 2-85x66-filled-enlarged.jpg, this is the file the script looks to display. Any ideas on why this happens and how to correct it?

Link to comment
https://forums.phpfreaks.com/topic/91135-gd-library-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.