Flash Image Compression
- Started
- Last post
- 17 Responses
- agentfour
I'm having trouble getting my images to look good when imported to flash. I was saving for web as png and then using lossless settings and 100% jpg quality when exporting flash movies. I have also tried saving a png straight out of pshop but as soon as it is imported to flash it looks rubbish. Im on MX 2004. Do later versions of flash have better image compression options? any help would be greatly appreciated!
cheers!
- clearThoughts0
I think, you're probably better off loading your images dynamically,
with loadmovie
- xero0
The simplest rule about using images into flash is to import them at exactly the size you need them to appear. Scaling them within flash makes them look jaggy.
- agentfour0
to do it dynamically does that mean using xml? cos im not the biggets actionscripter.
im not resizing anything, its all the exact size that is needed.
- acescence0
no, no xml necessary, just a few lines of actionscript. your image gets loaded at runtime from the server rather than being compiled into the swf itself.
- subflux0
just in case...
Check your Publish settings and make sure Flash isn't recompressing the images when you publish the SWF.
- agentfour0
yeh ive tried it on 100% but it was still looking the same.
acescence: cheers ive just tried that dynamic loading which works well i think, but i need to use pngs. do newer version of flash support pngs for this or just jpegs?
- agentfour0
this dynamic thing seems to be doing the exact same bad compression to the images.
- joyride0
where are you loading it into? A MC already on the stage? Make sure that is 100% too
- agentfour0
yep a movie clip on the stage.
yeh its 100%it is making it look like dodgy jpg compression making dark areas go very bad
- joyride0
when you test it in flash, right click, does it say 100% and have a check box next to it?
- joyride0
hrmm... looks a bit lighter in colour (the pink), but I don't see the jaggyness in that screen shot, try a differnent computer maybe.
- agentfour0
yeh it loses a bit of colour and that dark area goes all wierd like ive saved it s a jpg at 50%
- wendog0
clean up the original image a little better in photoshop, then try again - and do save for web as a png...it should work fine
- ItTango0
PS RGB settings?
sRGB works best.
- pmbrum0
also make sure your image is aligned on whole pixels. so the _x and _y position of the image should be whole numbers (and make sure you're checking the top left corner of the image). and if the image is inside a MC, make sure that MC is on a whole pixel, etc.
that issue plagued me many times, 'till i figured out the whole pixel voodoo.
- agentfour0
cheers all.
yeh its all on exact pixels and everything like that. The pngs look fine when i open them in photoshop or whatever, but as soon as they are iimported to flash all the colour gets sucked out of it and the dark areas get lightened. like the pink on one of my previous posts.