Convert an image to the closest GBColorPalettes ----------------------------------------------- In this example, the `originalImage.jpg` has been converted from the `png` one to `jpg` format. The conversion has altered the color palette. This example shows how to be sure that the read image has a valid color palette, by setting the `convert` boolean to `True`. Here are the `jpg` image first, followed by the `png` one, then by the converted one (visual color difference may be visually difficult to see): .. container:: centered-grid .. raw:: html
Original Game Boy Camera Image (JPG format)
Original Game Boy Camera Image (PNG format)
Converted original Game Boy Camera Image (JPG format)
Converted original Game Boy Camera Image (PNG format)