Image compression for Flash MX

hi!
I want to use large images for my flash movie.
What is the best way to export images with nice quality from photoshop into flash mx?

I saved as .jpg but the file size was too much.
Then I inserted the image simply by clicking “copy + paste” from photoshop to flash. The result was a small file size but a bad blur over the whole image.

please help…=)

muchas gracias! Thank you!

The best way imho is do your image in photoshop then save the psd and export using macromedia fireworks wich supports 32bit png compression photoshop only has 24bit and the file size from fireworks is a little smaller no matter what type of image be it jpg, gif or png its not much but 10kb or 1kb less is better if you ask me especially since i have 56k and i love making things load fast

Grim

First.
Let me thank you for the fast reply.
:beam:

I saved the file as png (using fireworks)
but the file size is too much.

Original file size .psd = 5,7 MB
Fireworks .png32 = 3,3 MB !
JPEG file .jpg 100% quality = 432 KB !!

Why is the file size of fireworks sooo big?
Do I have to merge all layers first?
I do not need any transparency.

Thanks for all help…and kirupa rocks!

:beam:

Which Photoshop version are you using,

6 and 7 both have a great feature which lets you export for web,
it also gives you a great live preview of the image,

for me I have found Jpegs to be the best, I can take a large image 3 to 4 megs and get in down to 30k and still keep a nice lookin image, aslong as you dont change the proportions in flash.

swift :trout:

Hi
I am using version 7.0.
i know the live preview and it is really helpful.
normally it works really cool. :cowboy:

as you described you can easily minimize the file size. but:
it does not really work good if you try to minimize the file size of an image
with e.g. lots of small white lines (texture) on it?!

i do not know why.
perhaps its more difficult to calculate an image with some texture lines lines on it…?!

anyway. think this is a good way.
btw:
in my case i get different file sizes.
e.g. image 1 with no lines on it = 40k
image 2 with white lines on it = 80k
colours on both are simple.

thanks for the reply.

:sure:

Fir simple (not many) colors you might be better off using .gif
its something to compare.

gif and png are lossless compression. They technically dont alter the image as a jpeg would. I high color png with alpha channel can still be very big though. The thing for gifs and png (more for gif because you dont have to worry about the alpha channel) is to only use the colors you need. If you only have 2 colors in your image, only allow there to be 2. Then the file size will be much smaller.

as for scaling, you might want to play with different interpolation/scale options. In photoshop you can change these in through Edit -> Preferences -> General.
you have nearest neighbor, bilinear and bicubic.
nearest neighbor youd want to use in resizing pixel images, like if you want to make a small smiley here into a bigger smiley but want to maintain per-pixel proportion. bilinear and bicubic on the other hand will blur the pixels to make them seem more ‘accurate’. The difference in bilinear and bicubic is just the technique, of which I wont get into now, but know that bilinear is better for shrinking images and bicubic is better for enlarging. Now if you are resizing images up and down a lot, and you want to maintain that bilinear and bicubic scaling (blurring added) then its probably your best bet to use bicubic since that is considered the better of the two… though bilinear is still better at shrinking.

anywho… keep that in mind in resizing and if you are losing lines in shrinking (which happens most with nearest neighbor) then try a different interpolation type.

Great! :ub:

Many thanks for these helpful things about the interpolation/scale options.

It works perfectly! Yeah!

Even if i export the image as .gif (means 50% less file size than .jpg) it looks very fine.

You have a great knowledge.
And thanks for sharing your knowledge here.

Greets,
saint

=) =) =)