Photoc is a cross-platform (macOS/Linux) command-line toolkit that helps photographers review, organize, and prepare JPEGs (with metadata read from Sony ARW RAW) from the terminal. It groups commands into inspection (exif, stats, timeline, query, duplicates, focus, check), organization (rename, sort), and copy/mask operations (compress, contact, scrub). Most commands can output JSON, support scripting, and run as read-only previews; changes are only made when explicitly confirmed with apply or when using in-place for scrub. Installers include a Homebrew tap or a prebuilt shell installer. It is not a RAW developer, image editor, or catalog; Windows and many RAW/HEIC formats are unsupported.
Concrete safety and behavior rules are emphasized: photoc never overwrites originals unless asked, previews whole rename/sort plans before applying and attempts rollbacks on failure, and long operations show progress on stderr. compress writes new JPEG copies, preserves EXIF/ICC/XMP but may still fail to hit a target size and exits nonzero if it can’t; duplicates finds byte-identical files; focus ranks JPEG sharpness as a culling aid. scrub can remove GPS or broader metadata (gps, privacy, all-metadata), writes copies unless used in-place (atomic replacement with no backup), and may not clear opaque MakerNotes. These specifics guide practical use and limitations.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.