banner with php (GD)

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
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

banner with php (GD)

Post by ddragas »

Is it possible to create banner with php (GD) code from jpeg pictures?

I don't remember I've read something similar.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Yah, read up on the image functions, as for example imagecreatefromjpeg.

I'm using it myself in my avatar, with the blueish background.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

What I thought is to make animated gif (banner) with GD
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

That wont be happening. Animated gifs is not supported. I havn't seen it happen yet that is, but I wouldn't be very surprised if someone brilliant have made it happen by hacking the source of an animated gif trying to recreate it somehow. But I wouldn't hold my breath, sorry.

There are flash animations tho, that can be created on-the-fly, that might be of interest. There are alot of con's against that tho but I thought I'd mention it at least.
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

thank you for reply. I realy aprecheate your replyes.

I've already tried to google for flash animations with php, but no source codes found so far.

Any suggestions or good sites with guides for making on fly animations?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Again, I had in the back of my mind that I've read something about it before, but I didn't belive myself enough... :lol:
http://www.imagemagick.org/script/index.php
...
Turn a group of images into a GIF animation sequence
...
Check this first before venturing in to the area of flash animations. Imagemagick have some requirements, and only you know if you have access to it (depending on the host's setup etc.).
User avatar
ddragas
Forum Contributor
Posts: 445
Joined: Sun Apr 18, 2004 4:01 pm

Post by ddragas »

Thank you for suggestion. I'll check your link you've suggested me

Here I've found some source code how to create swf files on the fly from jpeg pictures
http://www.hotscripts.com/jump.php?list ... ump_type=1
Post Reply