A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 30

Thread: converting .gif or .jpg to .swf

  1. #1
    Junior Member
    Join Date
    Dec 2000
    Posts
    4
    I need a batch conversion tool that can convert common image types (.gif, .jpg) to .swf. Why? Because I want to dynamically load different images into the same flash file. I wish Flash could reference .gif files directly, but it must reference another .swf. So I can create a .fla, bring in an image, then save to .swf, but I have hundreds of images that I need to convert. I know an answer might be "use Generator", but I actually have no need for Generator if I can accomplish this batch conversion in a simpler (and less expensive) way. I see that many drawing packages are coming out with a "save to .swf" feature soon, but I'm wondering if there are any shareware tools available now. irfanview is oh-so-close, but not quite there. anyone?

  2. #2

  3. #3
    Senior Member
    Join Date
    Jul 2000
    Posts
    503
    Swift Generator is cheap ($100)
    http://www.swift-tools.com/
    [free under certain conditions]

    XML->SWF also converter might be able to do it (not sure on the exact capabilities though)
    http://saxgate.saxess.com/visweb/

  4. #4
    Junior Member
    Join Date
    Dec 2000
    Posts
    4
    I went to wahler's webcam page. Very nice hack! However, the code creates a .swf of fixed size. What I need is the .swf created to be the same size as the inputed .jpg, and the .jpgs will be of all different sizes. I guess that's as easy as looking up width and height info in the .jpg header? Also, Wahler, you should add a few more image types (.gif for instance) and you'd have quite a nice little tool.

  5. #5
    Junior Member
    Join Date
    Dec 2000
    Posts
    17
    sammm, thanks. you may ask adam lounds (adam@sixzeds.com) for his perl script (jpeg to swf), that does a much better job than my c program.
    actually i already have a win32 version of my tool handy that supports variable image size, but it doesn't solve my problem, that flash player crashes with some jpeg file formats. adam's script should fix that. i plan to port that script to c and java in january.
    gx.
    claus.

  6. #6
    Junior Member
    Join Date
    Dec 2000
    Posts
    4
    thank you thc37, that is very kind. I will write to Adam.

  7. #7
    Originally posted by sammm
    thank you thc37, that is very kind. I will write to Adam.
    Howdy. I have already emailed back, but just to remind anyone out there the converter is available to anyone who emails me at adam@sixzeds.com.

    The script has now successfully converted over 50,000 images at moonfruit (http://www.moonfruit.com) and found some sources of dodgy jpegs as follows:

    Photoshop jpegs (look for a jpeg block identifier of EC/ED/EE in your file) - store jpegs in an entirely different way to anything else. Convert to a baseline jfif format before conversion.

    Multi-image jpegs (look for multiple FFDA byte pairs in the file) - again, convert to baseline.

    If you fail to fix these odd images, a converted image is almost sure to crash your browser/flash player.

    Have fun!

  8. #8
    Senior Member
    Join Date
    Oct 2000
    Posts
    310
    You should also check out Macromedia Generator Developer Edition.

    It does exactly what you need.

    check out :

    http://www.macromedia.com/software/generator/

    and

    http://www.markme.com

    for more information on Generator.

    hope that helps...

    mike chambers

    mesh@macromedia.com

  9. #9
    Originally posted by MikeChambers
    You should also check out Macromedia Generator Developer Edition.

    It does exactly what you need.
    <snip>

    mike chambers

    mesh@macromedia.com
    http://www.************.com/m0ECZ/20.../article.jhtml

    Hmmm. Can't really say much about generator vs anything else... ;-)

  10. #10
    Senior Member
    Join Date
    Oct 2000
    Posts
    197
    Sammm,

    I can create such a program for you. It will convert bmp, gif, jpg and png into swf. How much is it worth to you?

    Xn
    http://www.geocities.com/vid2swf

  11. #11
    Senior Member
    Join Date
    Oct 2000
    Posts
    197
    Sammm,

    I've changed my program so that it enables the conversion of:
    BMP, JPG, GIF and PNG files into flash.

    You can try it out in:
    http://www.geocities.com/vid2swf

    Xn

  12. #12
    Originally posted by xnxnxn
    Sammm,

    I've changed my program so that it enables the conversion of:
    BMP, JPG, GIF and PNG files into flash.

    You can try it out in:
    http://www.geocities.com/vid2swf

    Xn
    Cool! You da man...

    Does it do transparency in png/gif?

  13. #13
    Senior Member
    Join Date
    Oct 2000
    Posts
    197
    Actually no, but i'll work on it.

    Xn

  14. #14
    Senior Member
    Join Date
    May 2000
    Posts
    218
    I would love to see a way to take a .swf and convert it to an animated .gif WITHOUT going through Flash.

    Td

  15. #15
    Senior Member
    Join Date
    Oct 2000
    Posts
    197
    Td,

    I'm not an expert on disassembling SWF files. I only know how to create them.

    Xn

  16. #16
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Originally posted by TPhilipDolce
    I would love to see a way to take a .swf and convert it to an animated .gif WITHOUT going through Flash.

    Td
    It would be possible but unwise becuase to do that conversion what You will need to do is take a screanshot of the SWF then forward it a frame then take another shot and continue it until you have all the frames. Then use a gif program to make the Gif.

    Infact there is screanshot software out there that will take consecutive shots for you then turn those into a gif.


  17. #17
    Senior Member
    Join Date
    Oct 2000
    Posts
    197
    Johnie,

    Good idea, I use camtasia recorder to video my screen. It creates an avi which I'm sure you can convert to animated gif.

    Xn
    http://www.geocities.com/vid2swf

  18. #18

    question about changing jpg to swf

    Hi there,

    I might have a stupid question, but I am no programmer.

    Is it possible to make a tool wich will convert a jpg. to swf online.

    What I mean is this.

    A website I built should be maintained by the company. I make a login screen (in php) which enables the client to upload certain jpg-files ( in a certain dimension). This jpg-file should automatically be translated into swf, so that it can be used in my movie?

    Is this possible?

    Thanks,


    Jurgen

  19. #19
    Senior Member
    Join Date
    Jul 2000
    Posts
    5,087
    Yes,

    You need a server product Like generator, Swift Generator, JGenerator, or a XML>SWF converter (all of these products are avialable) to you.

    In fact there are boards for Generator and Swift Genertor.

  20. #20
    Junior Member
    Join Date
    Dec 2000
    Posts
    17
    i enhanced my jpeg2swf converter a bit, and there's a windows version available now. plus, you can test jpeg2swf online. just upload your favourite jpeg and see the results.
    http://wahlers.de/webcam.html
    it's free!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center