(Requires PyGame)
iffshow.py filename
Loads the picture given as a commandline argument and displays it in a PyGame window.
Keyboard controls:
- Space to toggle showing the image palette
- S to save image as PNG
- Escape (or closing the window) to quit
Images are always resized to the size of the IFFshow window (1280x960px by default).
The common Amiga graphics modes including EHB, HAM6, HAM8, and 24-/32-bit deep color should all work. There is also support for 8-bit IFF-PBM images.
Note that SDL_image (and therefore PyGame) can actually load IFF images directly, so decoding IFF in Python like in iffshow.py is not really necessary. I only learned this after writing iffshow.py though...
(Both require PyGame)
iff24.py filename
Converts an input image to an uncompressed 24-bit IFF-ILBM file.
The input should be a JPG or PNG file and preferably in an aspect ratio close to 4:3.
By default the output image is in low-res PAL resolution (320x256px).
DeluxePaint V on the Amiga can read these 24-bit IFF images and convert them e.g. to HAM8 or 256 colors if you disable the DPaint backing store.
ham.py filename
Similar to iff24.py, but it converts an input image to an uncompressed 6-bit HAM mode IFF-ILBM file. No palette is used, therefore image quality is not the greatest.
ham8.py filename
Same as ham.py, but for 8-bit HAM mode. Parts of the image with subtle color gradients like the sky will look a bit better in HAM8 than in HAM6.
Public Domain / CC0