Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Interactive Image Editing with popi

Interactive Image Editing with popi

A method for running the popi image software interactively using an editor build system

Anthony Starks

October 20, 2024
Tweet

More Decks by Anthony Starks

Other Decks in Design

Transcript

  1. popi (portable pico) popi is the portable version of the

    pico editor, as described in “Beyond Photography — The Digital Darkroom” by Gerard Holzmann. popi works with square, 8-bit (0-255, black-white) raw grayscale images.
  2. original image raw image edited image popio -import < ajs.jpg

    > ajs popio -export < ajs > f.png run popi popio (popi I/O) popio is a Go program to import and export popi images. popio reads from stdin and writes to stdout in two modes; (1) read images (JPEG or PNG) writing to raw, and (2) read raw files and write to PNG.
  3. Set up Sublime Text Loupe image in viewer popi script

    in editor popi < $file; popio -export < f > f.png f.png Running the build system (Ctrl- or Cmd-B) within the editor runs the script, making the output that is displayed in the viewer. To change the output, edit the script and re-run the build.
  4. face1 Building popi Go to https://www.netlib.com/popi/, download bundle and face1.uu

    $ sh bundle # expand shell archive $ uudecode face1.uu # decode image to raw format # change DEF_X and DEF_Y in popi.h to specify image size $ gcc -std=c89 -o popi *.c -lm # build popi $ ./popi # run popi -> r face1 -> new=face1 -> w f -> q $ popio -export -width 248 -height 248 < f > f.png $ open f.png