
SoftCropper
SoftCropper is a powerful CLI tool that transforms rectangular images into square, print-ready formats with aesthetic borders and customizable text annotations โ built for precision and automation.
Actively used by CanvasMagnet for order prep and A4 layout automation.
๐ธ Example Results
Before โก๏ธ After Baby.webp (600ร900)
Output (900ร900)
Kid.jpg (1100ร733)
Output (1100ร1100)
A4:
๐ Features
โ
Auto-square images with optional blurred/solid/gradient padding
๐ผ๏ธ Add customizable rounded borders around photos
โ๏ธ Annotate left/right/top/bottom with vertical or centered text (great for branding)
๐ Generate auto-arranged A4 collage pages from processed photos
๐ Resize final output by target size (e.g.
--size 5.5x5.5cm or --size 55x55mm)๐งช Includes CLI, Makefile, tests, and PyPI packaging
๐ฆ Requirements
Python
>= 3.7opencv-pythonnumpy๐ง Installation
For local development:
โ๏ธ CLI Usage
Options
Flag Description
--mode One of: blur (default), solid, gradient --border Add rounded frame around photo --text Enable text mode (requires at least one --left/right/top/bottom) --left Vertical text on left side --right Vertical text on right side --top Centered text above the image --bottom Centered text below the image --size Resize output image (supports mm or cm, e.g. 55x55mm) --a4 Generate A4 page(s) from processed imagesโ
Testing
Or manually:
๐ ๏ธ Makefile Commands
๐ Changelog
See CHANGELOG.md
๐ค Contribution
Pull requests are welcome! Open an issue or fork and submit a PR if you'd like to improve SoftCropper.
Author
0 likes ยท 4 views ยท Jul 14, 2025
Developed SoftCropper, a CLI tool for transforming images into square formats with annotations.