Shrink GIFs by resizing and lowering output quality. Animated recompression is used when GIF libraries are available.