Animated GIF

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
phpmash
Forum Newbie
Posts: 24
Joined: Mon Oct 31, 2005 6:41 am
Location: Kerala,India
Contact:

Animated GIF

Post by phpmash »

Can anyone help me to display an animated GIF image in PHP.

Thanking You in advance


phpmash :roll:
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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?
User avatar
phpmash
Forum Newbie
Posts: 24
Joined: Mon Oct 31, 2005 6:41 am
Location: Kerala,India
Contact:

Post 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
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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"/>
(#10850)
User avatar
phpmash
Forum Newbie
Posts: 24
Joined: Mon Oct 31, 2005 6:41 am
Location: Kerala,India
Contact:

Post 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
User avatar
bokehman
Forum Regular
Posts: 509
Joined: Wed May 11, 2005 2:33 am
Location: Alicante (Spain)

Post 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.
User avatar
$var
Forum Contributor
Posts: 317
Joined: Thu Aug 18, 2005 8:30 pm
Location: Toronto

Post 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.
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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
Post Reply