Many of you may use the Max colours value on the GIF export dialog to reduce the file size, especially on simple designs. It's also possible to make significant savings on complicated images with little loss of quality by combining a reduced palette with the Error diffusion dithering option. On closer inspection however, it appears that Xara X isn't doing all it can to reduce the file size, specifically when the number of colours chosen is less than or equal to half the maximum available (i.e. <=128 for 256 colours or <=8 for 16 colours). Here's the workaround:

Simply copy and paste your artwork to a single frame in a new animation document and export from there. The animation export options don't allow for sophisticated palette manipulation, but you can choose the number of colours and select transparency. If you need to manipulate the palette, make a bitmap copy of your drawing and export that from an animation document.

Explanation: Although the normal GIF export uses a reduced palette, the file still contains the maximum number of colours, each taking 3 bytes (e.g. a 64 colour GIF will contain 192 x 3 = 576 bytes of unused palette). What's worse is that the palette is not arranged for maximum efficiency, so the compression is less good too. You can use any values but the GIF file format supports palette sizes in powers of 2 (2, 4, 8, 16, 32, 64, 128 & 256) and the animation export takes full advantage.

Regards - Sean