converting jpg's or gif's or bmp's to swf

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
amitshetye
Forum Newbie
Posts: 12
Joined: Thu Dec 01, 2005 12:00 am

converting jpg's or gif's or bmp's to swf

Post by amitshetye »

hi all,

i want to convert the jpg's or gif's or bmp's to swf from the server dynamically.

is it possible?? :?:

anybody is having any idea??

regards

amit :)
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Yes. Check out Ming.
amitshetye
Forum Newbie
Posts: 12
Joined: Thu Dec 01, 2005 12:00 am

Post by amitshetye »

hi,

Sami

thanx for the reply

but i want to some code for that since i'm newbie to php.
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

amitshetye wrote:but i want to some code for that since i'm newbie to php.
You'll be a newbie forever if you don't try writing code yourself.

Fortunately the guys who write Ming have created some examples for you to learn from: http://ming.sourceforge.net/examples/ex ... e=jpegfill
amitshetye
Forum Newbie
Posts: 12
Joined: Thu Dec 01, 2005 12:00 am

Post by amitshetye »

I'm trying to create the swf on the server using ming but it is giving me the following error:

Fatal error: Cannot instantiate non-existent class: swfshape
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

you are missing that class. you are probably forgetting to include the file that has that class in the file that you are calling
amitshetye
Forum Newbie
Posts: 12
Joined: Thu Dec 01, 2005 12:00 am

Post by amitshetye »

thax for the reply,

i have to include ming library or what beacuse the code available on the below link has not included anything

http://ming.sourceforge.net/examples/ex ... name=shape
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

You don't have the Ming extension installed.
amitshetye
Forum Newbie
Posts: 12
Joined: Thu Dec 01, 2005 12:00 am

Post by amitshetye »

then what should i do please explain me briefly because i'm getting confused :x

help me........ :(
Post Reply