If you are going to indexed colours, you will get better compression from PNG than GIF.xoopha wrote:FWIW I had to save mine as a 128-color GIF for it to drop below 6KB.
It is generally the case, but not in this one. I used ScriptPNG and ScriptGIF to reduce its size and the gif file was the first one to drop below 6KB with the same color settings, so that's what I used.AndyD wrote:If you are going to indexed colours, you will get better compression from PNG than GIF.
Have a look at pngcrush.xoopha wrote:It is generally the case, but not in this one. I used ScriptPNG and ScriptGIF to reduce its size and the gif file was the first one to drop below 6KB with the same color settings, so that's what I used.AndyD wrote:If you are going to indexed colours, you will get better compression from PNG than GIF.
Great, I don't know how the heck did I use ScriptPNG before that it didn't compress the image that much. Now ScriptPNG leaves the image at 4,79KB instead of the 5,55KB of the GIF version. Dunno if I'm using PNGCrush correctly but it leaves it at 4,99KB which is less than the GIF version anyway.AndyD wrote:Have a look at pngcrush.
PNG files are compressed using the DEFLATE algorithm (same as found in zip files and gzip) using zlib. You can choose a compression level in zlib that adjusts the trade-off between time taken and amount of compression (0 - no compression, 9 - use maximum compression). By default the PNG library (libpng) uses compression level 6. The PNG algorithm also has a number of fully reversible filters that may help with the compression of some images. The pngcrush utility can be used to iterate through a number of different filters/compression levels to ascertain which combination give the smallest resulting file.xoopha wrote:Great, I don't know how the heck did I use ScriptPNG before that it didn't compress the image that much. Now ScriptPNG leaves the image at 4,79KB instead of the 5,55KB of the GIF version. Dunno if I'm using PNGCrush correctly but it leaves it at 4,99KB which is less than the GIF version anyway.AndyD wrote:Have a look at pngcrush.
Sorry, but all I can think is WTF??!?!?!!!!RaptorCIP wrote:How do you compress a picture down to 6 KB to use for an avitar? I reduced the size of mine to 40 x 40 pixels, and can't get a JPEG below 7 KB.
8KB would be the cluster size in your HFS or HFS+ formatted drive then.RaptorCIP wrote:Thanks for the help. The GIF trick got me down to 4500 bytes, but the disk file size on my Mac is still stuck at 8 KB. I'll move the file to my PC and try from there.
I have seen the issue with JPG, some times it is 4 bytes per pixal (32bpp), and there is the header, and it can be multi layer. Though if done for an avatar 8 bpp should be the highest color depth, that could help the OP as well, also flattening it would likely help (if it is multi layer), and geting rid of the extra metadata.aTao wrote:Sorry, but all I can think is WTF??!?!?!!!!RaptorCIP wrote:How do you compress a picture down to 6 KB to use for an avitar? I reduced the size of mine to 40 x 40 pixels, and can't get a JPEG below 7 KB.
40 * 40 * 3 = 4800 = 4.7KB
Tried using .bmp ?