Flash image compression

  • Started
  • Last post
  • 4 Responses
  • pr2

    As everyone knows it's always best to import the images as JPEGs of the highest quality and in the library uncheck "Use imported JPEG data" so that flash will recompress the images. SHit but i have like a few dozens to do... Is there a way to automitize this process?

  • rh1

    The process is debatable; I trust Photoshop's compression better than Flash - precompressed images keep the FLA file smaller and make it easier if you convert to dynamically-loaded optimized pics.

    If you went with optimizing in Photoshop, you could just run an action or create a droplet. Otherwise, you could do a batch optimization of all bitmaps in your Flash via File>Publish Settings (not a very clean process though).
    Hope this helps.

  • pr2-4

    Hym, but doesn't Publish Settings talks onky about JPEGs? Also It was from my experience that doing as i said makes filesizes smaller. Are you saying i shoul put my images in PS and resave them as PNG and then import into flash?

  • rh1

    Publish settings compresses PNG files in the FLA globally. By doing this, you're setting a uniform quality % to all bitmaps. I don't like doing this because you can optimize certain images more than others, and because PNG files take up more space on a HD. Ultimately, PNGs also increase the overall size of the FLA (not the SWF).

    If you want to automate the process, you can either import all images as PNG and set the desired publish settings, or you can optimize your JPEGs in a photo editor and import them in Flash with their imported JPG data. I believe Macromedia usually suggests using PNG, though I prefer the latter for size reasons. Also, if you decide to dynamically load your JPEGs, the SWF can't control the bitmap compression at runtime.

  • CyBrainX0

    I always thought PNGs were quite piggish in SWFs. They are bigger outside of Flash and seem to animate extremely slow.

    I always use Photoshop to compress, use imported jpeg data and set the publish settings to 100% so the iamges don't recompress.