mcmuney Posted February 14, 2008 Share Posted February 14, 2008 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.