SWFShot v0.1 Released. Save Images of SWFs Greater Than 2880 Pixels


I sometimes need big images out of my flash files. By big, I mean larger than the 2880×2880 maximum size allowed by the Flash player. It just so happens that Flex has a way around it, and so SWFShot was born. Read on to learn more and download it.

The ImageSnapshot class in in Flex allows you to capture much larger images than the previous limit. You can encode the images as PNG or JPG and then, with Adobe AIR, you can save the image captured to the local system.

I saw the FITC post that Flash player 10 will bump up that limit. That’s great. I’m psyched. But, I also know that many people could use this functionality now, so, here it is. SWFShot. Flash Player 10 is at least a little ways off, so 2880 is the max from Flash for now.

Install it now, using the sweet new AIR plugin for wordpress written by Peter Elst.
[airbadge]SWFShot, http://visualrinse.com/files/SWFShot.air, v0.1, /files/swfshot_badge.png[/airbadge]
If for some reason that installer badge doesn’t work use this link.

A few things. I did have a few more features planned for the app, scaling, filters, and some simple playhead controls… But in the interest of getting it out there and letting people play with it, I’ve decided to sideline some of those features for now. Also, the app seems to work well with images up to about 8000×8000, but I haven’t really tested it past that. Furthermore, JPGs, PNGs and AS1/AS2 Flash files have no real problems as far as I can see, but I did observe that some AS3 Flash files that directly access stage properties currently trigger the AIR security sandbox and will hang the app. I hope to have that fixed soon, too.

Sidenotes… this all sprung out of the fact that in creating a video thumbnail generator in Flex (it crawls the duration of the clip, creates bitmaps of them and them puts them on stage for quick review), I discovered ImageSnapshot. A fantastically helpful little class in the Flex 3 SDK, it’s noticeably absent from Flash. I blogged this last week. Today, Aral Balkan tweeted about a similar concern about the growing chasm between AS/MXML/Flex/Flash features and the things that one IDE has that another doesn’t. Another quick example…

In Flex you can do this…
container.removeAllChildren();

In Flash you can’t, so you have to do something like this…
while(container.numChildren){ container.removeChildAt(0); }

I would agree that these discrepancies lead to confusion when you jump back and forth between the environments. What about you? Having difficulties living in a multitool Flash platform that seems to be getting a bit more difficult to navigate? With the AIR function being rolled into the standard AS3 documentation on top of all this, there is yet just another thing for you to keep track of.

Anyway. Enjoy, play with it and let me know what you think.

Posted on


29 comments

  1. Web tutorials Jun 12

    well personally i have never had the need for bigger images than 2880 x 2880, but this is a cool tool, i may install to play around with it and find some uses for it in the future.

  2. Hank Oct 14

    Help me!!!!!

    Now My Problem is

    Drawing mx.conrainers.Canvas By Flex Air or Flex RIA, at monitor maximum resolution(768 * 7168) So, Various UIComponents(ex : VideoDisplay, SWFLoader etc) arrange in Canvas. But, Canvas can not drawing at monitor maximum resolution Only, drawing about 4000 pixels, so UI Component can not arrange in Canvas at monitor maximum resolution

    This problem with large bitmap data probably is relation, will not know If there is not relation of it How can mx.containers s components(ex:Canvas) arrange at monitor maximum resolution(768 * 7168)

    If there is relationship of it
    Of doing with Flex RIA there is a method which is the possibility (Flex SDK 3.2.x version support Flash player 10 Beta which I know)

    We want there being will be able to arrange mx.containerss component (exl:Canvas) at monitor maxium resolution(768 * 7168) Will help and Thanks veryĶ

  3. dc Dec 29

    can air apps be run from the command line? i need a tool to batch copy a bunch of swf image/URLs… but running as a background process…

    would you consider open-sourcing the app you’ve built?

  4. Lawrie Feb 10

    Hi,
    This app sounds great, and hopefully does exactly what I want, but I’m having some problems with it. Have there been any updates to it since this was written?
    When I try and get this version to load a swf, I get only a static shot of the first frame displaying over my desktop, and an unreadable jpg file created.
    I’m trying to output large (eg. larger than 2880*2880) images from my smaller sized actionscript driven vector animations – stage size 750 x 750 ish. Is there any way to do this from this app? Or using anything else?
    Cheers.
    Lawrie.

  5. Chad Feb 10

    This app sounds great, and hopefully does exactly what I want, but Im having some problems with it. Have there been any updates to it since this was written?

    - Only some minor tweaks for myself, nothing worth releasing to the public. I have added no new features recently.

    When I try and get this version to load a swf, I get only a static shot of the first frame displaying over my desktop, and an unreadable jpg file created.

    - I don’t have the app configured to currently do any sort of playhead control for timeline based SWFs, but this is a pretty cool feature to consider adding. And I did just try opening a file I just created via SWFShot in photoshop and it opened fine. What application did you try to open the file with?

    Im trying to output large (eg. larger than 2880*2880) images from my smaller sized actionscript driven vector animations – stage size 750 x 750 ish. Is there any way to do this from this app? Or using anything else?

    - hmm, currently the app doesn’t scale the loaded content sprites, but this is also a great feature suggestion. i’ll see what i can do, but it might a few days before I can get around to it.

    Lawrie, thanks for dropping by, I’d like to make swfshot more useful for everyone, so again, thanks fro your suggestions.

  6. Lawrie Feb 11

    Thanks for the quick response Chad.
    I’ve been searching for a long time for an easy (easier?) way of exporting large print quality images from flash, in the style of Erik Natzke. His method of multiple tiles of 2880×2880 bitmpa data objects stitched together does work, but is also quite labour intensive.
    What I’d hoped for, was the ability to open my swf, choose an image export size, let the animation run and have it periodically export these large, scaled images.
    I’d love to see those features added, but understand that’s not what this app was designed to do. And that they’re probably quite difficult features to add :)
    Cheers Chad, and keep up the awesome site.
    Lawrie.

  7. Josean Oct 27

    I would like to have the version wich allows to changa parameteres like quility, dpi, etc…
    Where can I download it??

    Thank you

  8. Game Iterator Jul 6

    Wow, cool, i can make SWF file with very high quality
    So it HD isn’t it?

  9. Web Tasarim | John Alden Sep 1

    Ah that’s a great thing man! This is just what i needed for a long while. Saving SWF files as Hd was a pain in the ass. Thanks a lot :)

  1. SWFShot Available in the Adobe AIR Marketplace, Info on Secure Certificates, Too. | Visualrinse | Design and Development by Chad Udell
  2. 30+ Great Adobe AIR Apps for Designers and Developers
  3. 30 grandes aplicaciones Adobe AIR para dise?adores y desarrolladores | Mashable
  4. 30§?Adobe AIR? |
  5. Tasarmclar ve Geli?tiriciler ??in 30+ Adobe AIR Uygulamas | cizzy.net
  6. 30§ʨ扺?ư&ºAdobe Air? | Blog
  7. 42 Aplicaciones Adobe AIR | Diseño, vídeo, fotografía y blogging | ..: Cristian Eslava | Dise?o Gr?fico / Web | Maquetaci??n | Formaci??n :..
  8. Flox » Blog Archive » 30+Adobe AIR?
  9. 30+ Great Adobe AIR Apps for Designers and Developers | Enetlive.net- Rich Internet Applications Blog
  10. Aplicaciondes de Adobe AIR | Zylestt
  11. Large Format Flash Printing - Michael Welford . com
  12. 28 Adobe AIR Apps for Designers and Developers - Need Some AIR? : Speckyboy Design Magazine
  13. 16 Adobe AIR Apps for Web Designers | Beat Fly Blog
  14. 28 Adobe AIR Apps for Designers and Developers - Need Some AIR? | designstar
  15. 25 Time Saving Adobe Air Apps For Developers & Designers | JB's Personal Portfolio
  16. 28 applications qui fonctionnent ? l’AIR! | webochronik
  17. 47 Useful Adobe AIR Apps for Web and Graphic Designers : Speckyboy Design Magazine
  18. 47 Useful Adobe AIR Apps for Web and Graphic Designers | EMDMA
  19. Adobe AIR Apps for Web or Graphic Designers | Cosmos Blog -- Internet News,Life,Culture,Polices,Resource,Make Money
  20. Top 30 Adobe AIR Apps for Designers and Developers - Top 100 Directory

Leave a reply