Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Convert JPG to SWF

Status
Not open for further replies.

jbradshaw666

Programmer
Jul 27, 2005
4
US
Does anybody know of a way to programatically convert a jpg to a swf file? I have a web site where somebody can upload a jpg and we want to be able to display it as a swf file (need a swf because we want it to retain the aspect ratio even when it's a different size.)

TIA.
 
Kenneth,
Thanks I think. But I don't know what you are talking about when you say 'load movie'. I'm just loading a swf file from an asp.net page. I'm not actually creating the swf file.

I need to be able to have my website allow somebody to upload a file in jpg, and display it in swf so that the swf will take care of the dynamic resizing for me.

Thanks anyway.
 
Kenneth,
Thanks but I need to do this programatically NOT through the flash programs. I have a web site where somebody can upload a jpg file and I want to convert it to swf so that it will scale it appropriately. Plus I have other things as part of their picture that I want to do to create the swf file.

But all of this needs to be done through code not through the Flash programs.

Jeffrey.
 
By dynamically loading a JPEG into a SWF, you are converting a JPEG to a SWF!

If you insist, there are tools for converting images to SWFs, such as "swfimage" < > I've never used this but it says you can run as a server app - that's probably what you're after.

However this is totally unnecessary, as [tt]loadMovie[/tt] can load JPEGs. Before Flash 5 (or 4 - can't remember) [tt]loadMovie[/tt] could load only SWF, you had to convert JPEGs to SWFs then. You don't need to do that anymore.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top