Solved

SWF on the fly...

Posted on 2001-06-05
8
512 Views
Last Modified: 2012-06-27
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
0
Comment
Question by:malcx
8 Comments
 
LVL 8

Expert Comment

by:us111
ID: 6156928
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
 
LVL 8

Expert Comment

by:us111
ID: 6156940
0
 
LVL 3

Author Comment

by:malcx
ID: 6158787
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
 
LVL 4

Accepted Solution

by:
kalosi earned 100 total points
ID: 6162798
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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Expert Comment

by:hsalf
ID: 6171305
Convert JPEG to .swf

Check it out...hope it helps

http://wahlers.de/webcam.html

Kind Regards,

hsalf <--
0
 
LVL 8

Expert Comment

by:us111
ID: 6171619
0
 
LVL 3

Author Comment

by:malcx
ID: 6189851
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
 
LVL 3

Author Comment

by:malcx
ID: 6254641
Sorry for the delay in awarding - forgot all about this!

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

Cheers,

Mal
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Download a website to hdd 2 52
PHPStorm debugging issues 1 25
MySQL Grouping 2 25
PHP Sessions in WordPress 8 9
Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now