Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have CCK and image field working flawlessly, but when I try to upload an animated gif, it’s not playing, but just showing a single still picture. Obviously the thumbnail has to be a still picture (as it is) but when the animated gif is clicked, the animation should play in the lightbox2. Is there a field type or a fix for image field that allow this feature?
Here is a link to 4 gif's I inserted. None of them are playing when clicked.
Any help would be much apreciated.
Comments
Comment #1
koldtoft CreditAttribution: koldtoft commentedAdding...
In addition, the file that is uploaded is not animated even if I just load it in the browser... (it is animated before upload when playing from hard disk)
http://tyndfed.dk/sites/default/files/imagecache/normal/[uid]/1286793604... (this is the link i get from rightclicking the file on lightbox2)
Comment #2
koldtoft CreditAttribution: koldtoft commentedI have just discoverd that when I upload a file, it is put on the server..
http://tyndfed.dk/sites/default/files/1286355929868.gif
But that is not the file Lightbox2 links to. (it links to http://tyndfed.dk/sites/default/files/imagecache/normal/1286355929868.gif)
Comment #3
koldtoft CreditAttribution: koldtoft commentedI solved it :)
It was ImageCache rescaling the images to "normal" 800x600 and thus linking to a non animated version of the gif.
Comment #5
jianbo1988 CreditAttribution: jianbo1988 commentedI face the same problem, actually drupal automatically compress the animated gif image after you uploaded, so the image you see is not the original gif.
I just try to find how to close or modify this function. but i didn't get that?
Some one can help me?
Comment #6
jianbo1988 CreditAttribution: jianbo1988 commentedCould you tell me How did you solved that?
I face the same problem that my website can't show animated image
Comment #7
VM CreditAttribution: VM commentedcheck your field settings ensure no alteration upon upload. Avoid passing through image styles.
Comment #8
capysara CreditAttribution: capysara commentedThanks! #3 is still helpful years later, and this was one of the first results in my search. My image field allowed .gif files but I was only getting a still image. I was adding the gif to an existing media field, which was applying styling. I added a separate media field just for gifs and it animated as expected.