Page 1 of 1

Animated GIF

Posted: Mon Jun 12, 2006 10:50 am
by phpmash
Can anyone help me to display an animated GIF image in PHP.

Thanking You in advance


phpmash :roll:

Posted: Mon Jun 12, 2006 10:59 am
by onion2k
You'll need to be a lot more specific before anyone is going to be able to offer assistance. What *exactly* do you want to do with an animated gif? Do you want to make one? Edit one? Display one in a web page?

Posted: Mon Jun 12, 2006 1:57 pm
by phpmash
Sorry,
I need to upload an animated/nonanimated GIF file in to my site.
And display it in another page.
So I want to know whether it is possible.
First I want to know whether the image is animated or not?
If it is not animated I want to add water mark.
If so how can we display it in my second page.
I did it using our conventional GD method
BUt the animated effect lost
phpmash

Posted: Mon Jun 12, 2006 2:03 pm
by Christopher
You don't need PHP do display an animated GIF -- just display it like any other image using the HTML tag:

Code: Select all

<img src="path/to/my/image.gif"/>

Posted: Tue Jun 13, 2006 8:26 am
by phpmash
But can we create a thumbnail for an animated GIF image.In Sourceforge I got an example to create a thumbnail.
Do you have any othe roption for it

Posted: Tue Jun 13, 2006 9:43 am
by bokehman
phpmash wrote:But can we create a thumbnail for an animated GIF image.In Sourceforge I got an example to create a thumbnail.
Do you have any othe roption for it
This is presently not possible under any default build of PHP.

Posted: Tue Jun 13, 2006 9:52 am
by $var
you'd be doing better with CSS for this... try this tutorial:
http://host.sonspring.com/hoverbox/

view the source code, copy the hoverbox.css and save it and link to it, and use the <li></li> for each image.

Posted: Tue Jun 13, 2006 12:18 pm
by John Cartwright
$var wrote:you'd be doing better with CSS for this... try this tutorial:
http://host.sonspring.com/hoverbox/

view the source code, copy the hoverbox.css and save it and link to it, and use the <li></li> for each image.
That would still allow someone to download the image without a watermark though