texture size increase when imported

hey guys, quick question. Does anyone know why when i import my 512x512 27.9kb the file turns into 170kb? this is quite strange but its quite a size bigger, i set its max size to 512 and compressed in unity :S

thanks

The texture file size depends on what settings you use in Unity (RGBA 32-bit, compressed, etc.). The source file is irrelevant. If that 27.9KB means you’re using JPG, I’d suggest not doing that, since using compression in Unity means you’re degrading the image unnecessarily by using lossy compression on it twice. PNG is OK though.

–Eric

ok so, in photoshop i should save for web devicses as a png? then should be ok in unity? also do you know of a way to compress to TGA or could i simply save as TGA without compression in photoshop and then unity will do all the compression for me?

If you’re using Photoshop you should just save it as a Photoshop file. The compression options in Unity are the only options you can use; graphics cards don’t use PNG or JPG or anything, only DXT (or PVRTC on the iPhone).

–Eric