Jump to content

Command Crate ¿about?

Generate SIXEL previews from a directory of JPEG images (find, imagemagick, bash)

find ./.artwork/jpeg/ -type f \( -name "*.jpeg" -o -name "*.jpg" ! -name "*_optimized.jpeg" \) -exec bash -c 'magick -strip -quality 88 -verbose -limit thread 0 "$0" sixel:- > "${0%.*}.six"' '{}' \;

Finds all JPEG images in a specific directory, skipping any that are already optimized, then converts each image into the SIXEL graphics format for terminal display, saving the result as a .six file.

utilities [kb:316]