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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.