How do I store anti-aliased images as GIF files while preserving all used colors (like Photoshop does)?

Rob Edmondson

A gif file supports a maximum of 256 colours. However, the palette entries are 888RGB (24 bit) format. If you use efficient filters and colour reduction with the original image before converting to gif, you should get better results. If you need better image quality, use JPEG and low (or no) image compression.