SWF on the fly...

Scenario - someone uploads a jpg file of known height and width to a server - can I automatically create an swf file containing just that image and nothing else?

If not in php any other way? (not using generator!)

I don't think it can be done - but thought I'd ask...

Cheers,

Mal
LVL 3
malcxAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kalosiConnect With a Mentor Commented:
Yes shurely you can. you've got even more possibileties.
Currently I know about two libraries which are allowing you to buld .swf files on the fly. One is the swf lib as told abow
can check out the docs at www.php.net. The only problem
that I had with tis library that I was not able to build it succesfully. Thus even I compiled it into PHP (used 4.0.5)
the apache deamon SEGFAULTED when calling these functions.

The alternative sollution is the ming library
you gen get it from http://www.opaque.net/ming/
there also some usefull examples which will surely help
you.

bye
0
 
us111Commented:
hmmm, have a look at the shockwave functions from the php manual.
You have the swf_definebitmap  function which allows you to convert a picture into a jpeg flash.

so it means that you need to create a dynamic flashfile

0
Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

 
malcxAuthor Commented:
us111 thanks - I'll read that in a bit - but I'm also looking at a few other options now...
http://www.blue-pac.com
This appears to be a more cost freindly version of generator

additionally
: http://www.php.net/manual/en/ref.swf.php
has some good php functions.
0
 
hsalfCommented:
Convert JPEG to .swf

Check it out...hope it helps

http://wahlers.de/webcam.html

Kind Regards,

hsalf <--
0
 
us111Commented:
0
 
malcxAuthor Commented:
Hmmm so many links - who to give points to...
I'll get a chance to look through em all in the next day or two and award accordingly,

Cheers,

Mal
0
 
malcxAuthor Commented:
Sorry for the delay in awarding - forgot all about this!

Given the points to kalosi, but thanks everyone else for links,

Cheers,

Mal
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.