Skip to content

SnapCrop 1.0.0 — Batch conversion with a live preview

Latest

Choose a tag to compare

@Garionhk Garionhk released this 04 Sep 03:40

SnapCrop 1.0.0 — Batch conversion with a live preview

First public release.

SnapCrop takes a folder of images and, in a single pass, converts the format,
resizes to a target aspect ratio, and applies the same colour correction to
every file — with a live preview so you see the result before committing.

It was built to prepare a shoot for a digital photo frame, and it defaults
accordingly: baseline JPEG, metadata preserved, and your originals never
touched.


Install

Download SnapCrop.app below, unzip, and drag it to /Applications. It's
self-contained — no Python needed.

The app is unsigned, so macOS blocks the first launch. Right-click the app
→ Open → Open.
You only need to do this once. Signing properly requires an
Apple Developer ID.

Prefer to run from source?

git clone <repo-url> && cd SnapCrop
pip install -r requirements.txt
./run.sh

Needs macOS and Python 3.9+ (built and tested on 3.12).


What's in it

Convert

Reads 74 file extensions — anything Pillow can decode, queried at startup
rather than hardcoded. Writes JPEG, PNG, WebP, TIFF, BMP, GIF, plus
HEIC and AVIF when pillow-heif is installed.

JPEGs are written baseline, matching Photoshop's Save As. Progressive
JPEGs are smaller but many simple decoders — digital photo frames, e-readers,
older viewers — display nothing at all for them. There's a Progressive JPEG
checkbox if you want the smaller file.

Resize

Twelve aspect-ratio presets (1:1, 4:3, 3:4, 3:2, 2:3, 16:9, 9:16, 16:10,
10:16, 5:4, 4:5) plus free-form w : h, and five ways to say how big:

Mode Meaning
Keep original size Only the ratio changes
Long edge One number; the short edge follows from the ratio
Exact size Explicit W × H
Percentage Relative to each image's own size
Fit within Shrink into a bounding box; never enlarges

Orientation matching flips the target per file, so one setting handles a
mixed batch — 3:4 gives 4:3 for landscape shots and 3:4 for portraits. This
applies to Exact size too: set 1280 × 800 and portraits come out
800 × 1280, landscapes 1280 × 800.

When the source shape doesn't match: crop to fill (with a crop anchor),
pad, fit inside, or stretch. Enlarging is off by default; when
that stops you reaching the size you asked for, the app says so and names the
size it would have produced.

Adjust

Brightness, contrast, saturation, temperature and tint, −100…+100, applied
identically across the batch. Preview in Result, Original, or
Split for a before/after down the middle.

Queue

Drag images or folders onto the window, or use the Add buttons. Each row shows
a thumbnail, name, pixel dimensions and file size, with dimensions corrected
for EXIF rotation. Rows appear instantly and thumbnails fill in on a
background thread — 120 twelve-megapixel JPEGs list in about 25 ms.

If an import adds nothing, SnapCrop tells you which file types it skipped
instead of appearing to do nothing.

Output

Prefix/suffix naming with a live example, collision policy (rename / skip /
overwrite), EXIF and ICC profile preservation, and a background colour for
flattening transparency into formats without an alpha channel.

SnapCrop never writes over a source file. If the output would land on the
original, it is renamed instead.

Conversion runs on a thread pool across every core, reporting per-file output
sizes and an ETA, and can be cancelled mid-run. Settings save as presets, and
the last-used configuration returns on next launch.


Known limitations

  • Camera RAW is not supported. .CR2, .CR3, .NEF, .ARW, .DNG and
    friends can't be decoded — Pillow has no RAW support. Importing them adds
    nothing and explains why. Export to JPEG or TIFF first.
  • Animated GIF and WebP are processed as their first frame only.
  • White balance is one global setting for the batch, not per-image auto-WB.
  • The .app is unsigned (see Install above).
  • macOS only. The image pipeline is portable, but the build script and the
    themed UI target macOS.

Notes

Built with Python, Tkinter and Pillow. The interface is drawn on canvas rather
than themed, because macOS renders native controls and ignores any background
colour set on them — a side benefit is that the rendering is inspectable, and
the test suite reads back every drawn row and colour instead of trusting the
toolkit's own account of itself.

201 automated checks cover the resize arithmetic, colour maths, every
writable format, EXIF handling, collision policies, the real widgets, and
on-screen geometry.

python3 tests/test_pipeline.py
python3 tests/test_gui.py
python3 tests/test_layout.py