Oriel — AI & technology worth noticing, every day.

Making a 88x31 button book using ImageMagick

Web page · https://k.sosnierz.me/08-11-24

First seen by Oriel on .

AI summary

This tutorial uses ImageMagick, POSIX text tools, and the TomThumb font to turn Moby Dick into a 88x31 animated GIF readable frame by frame.

  • The 88x31 format displays five rows of 22 characters using TomThumb, a low-resolution font designed for legibility at small sizes.
  • cat, tr, and fold normalize the text, remove line breaks, and wrap it to 22-character lines before ImageMagick processes it.
  • ImageMagick generates frames from standard input, then crops the output to 88x31 pixels and sets a six-second delay between frames.
  • A Python script centers each line by adding spaces based on its length.
  • The complete Moby Dick animation is 4.2 MB and runs for over 19 hours, while the included examples contain only the first chapter.

#imagemagick #animated gif #posix #bitmap fonts

Generated by gpt-5.6-sol. Check the original for details.

Aliases

SourceExternal IDURL
Hacker News50132198https://k.sosnierz.me/08-11-24/ Read discussion
Lobstersv6hhdrhttps://k.sosnierz.me/08-11-24/ Read discussion