Categories: Linux

Making Amiga IFF Thumbnails Work in Linux

I was having an email conversation with Stoo Cambridge, and he mentioned that he was having trouble making his Linux machine display thumbnails of Amiga IFF/ILBM files. It turns out I have a solution for him, so I am sharing it here to help anyone else.

GNOME Support

There is a versatile library and command line image manipulation tool in most Linux distributions called ImageMagick, and it supports IFF/ILBM files natively. This gives us one piece of the puzzle. The other piece is how to use this to generate thumbnails using this.

GNOME and most other desktops support the Freedeskop standard of “Thumbnailers”. These are small configuration files that tell the desktop how to generate a thumbnail for a specific mime type.

Using this information we can create a file called ilbm.thumbnailer with the following contents and put it into /usr/share/thumbnailers.

[Thumbnailer Entry]
TryExec=convert
Exec=convert %i -thumbnail %s %o
MimeType=image/x-ilbm;

This will usually require you to log out and log back in again for the files to be discovered. After this, thumbnails of your Amiga files should work!

KDE Plasma

Unfortunately, KDE Plasma does not support the thumbnailer standard. For this, a plugin needs to be written for Dolphin. Luckily, this is straightforward to do. I knocked this one up in about half an hour, and it seems to work well.

You can obtain the source code for this plugin on GitHub.

Update 2023-09-01

The code now corrects the aspect ratio of full screen Amiga images before generating the thumbnail, this is because Amigas can have resolutions such as 640×200 and 320×400 on a 4:3 screen. This is the end result:

LinuxJedi

View Comments

Recent Posts

Reviving an Amiga 600: From Dead Video to a Clean Boot

I managed to score an Amiga 600 motherboard which was faulty for £41. This weekend…

2 weeks ago

The Amiga 1200 That Fought Back: The Faults I Missed the First Time

I recently repaired an Amiga 1200 with a difficult to find fault. Unfortunately, it came…

3 weeks ago

Why Recapping Isn’t Always the Cure: And Amiga 1200 Repair Story

I often see on places such as Facebook that an Amiga owner will show a…

1 month ago

KDE Plasma Automatic Time Zone

I have been a full time KDE Plasma user for quite a while now. Whilst…

1 month ago

The wolfDemo Board Story: From Idea to Reality

I work building open-source cybersecurity solutions for wolfSSL. These solutions often involve embedded environments, which…

2 months ago

Upgrading the RAM Detective: A Firmware Adventure with RAMCHECK

The firmware in my RAMCHECK is very old, there were many updates since then. Unfortunately,…

5 months ago