Skip to content

Instantly share code, notes, and snippets.

View jpeg-archive-replace.sh
#!/bin/sh
# requires jpeg-recompress <https://github.com/danielgtaylor/jpeg-archive>
# same as jpeg-archive, but:
# * without 3rd-party dependencies
# * can re-compress a single file as well as a directory
# * replaces original with optimized version (keeping file timestamps)
# * no support for RAW images