Urgent.News

What's breaking now, across thousands of outlets.

Tech

Making a 88x31 button book using ImageMagick

An 88x31 button book was created using ImageMagick, a powerful image manipulation tool. The creator found that there is no limit to the number of frames in a GIF file, and the maximum resolution is 2^16 by 2^16, which is an enormous 4.295 megapixels. However, the focus was on creating a small 88x31 pixel (0.003 megapixel) book, which may not provide enough space for regular text fonts like Arial.

The creator discovered that TomThumb, a font designed for extreme legibility at small sizes, was the ideal choice for this project. To obtain Moby Dick, the text was sourced from a plain text version of the book, which was stripped of any licensing information and cropped to remove preface material. The text was then formatted using cat, tr, and fold commands to create a single line of text with up to 22 characters per line.

This formatted text was then converted into a GIF using ImageMagick, with each line of text becoming a separate frame. The creator experimented with different fonts and text formatting techniques, ultimately creating a unique 88x31 button book featuring Moby Dick.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at k.sosnierz.me →

More in Tech

More from Friday 16 October →