Scales images to standard ISO card dimensions with blurred margins, customizable millimeter padding, and PNG output.
Project description
pictoiso
A Python CLI tool and library to symmetrically upscale, style, and fit images into the standard ISO/IEC 7810 ID-1 card dimensions (85.60mm × 53.98mm). Perfect for creating uniform printable card labels, badges, or templates.
Features
- Blurred Canvas: Scales the image to fill the background completely and applies a smooth blur filter.
- Symmetric Centering: Fits the foreground cleanly over the center without distortion.
- Lossless Export: Always outputs high-quality PNGs with embedded DPI metadata.
- Inner Image Margin: Symmetrically shrinks the foreground image by a custom millimeter value, exposing more of the blurred background around the edges.
- Batch Processing: Point the tool at a folder to convert all images automatically.
Installation
pip install pictoiso
CLI Usage
Single Image Conversion (with 4mm inner padding margin)
pictoiso photo.jpg -o output_card.png --dpi 600 --border 4.0
Batch Directory Conversion
pictoiso ./my_photos --blur 25
Arguments
input: Path to input file or folder.-o, --output: Target destination (file path or folder path).-b, --blur: Background blur radius (default: 15).--dpi: Target pixel density (300 or 600).--border: Foreground inner padding margin in millimeters (default: 1.8).
License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License (CC BY-NC 4.0). It is strictly free for personal and non-commercial use. Commercial use is prohibited.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pictoiso-1.0.0.tar.gz.
File metadata
- Download URL: pictoiso-1.0.0.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
64a5cd505b991c330932838da953ee69ada16e386ddf93e0b71bf2bc2dfa4687
|
|
| MD5 |
c302305d0aa2d177d9af5131d8064949
|
|
| BLAKE2b-256 |
fdfc910504f703b230ec85a990270f2cf812a00c9405ab40f1e3f40bd4fbfdee
|
File details
Details for the file pictoiso-1.0.0-py3-none-any.whl.
File metadata
- Download URL: pictoiso-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3e2c811f6e2cede3f93852a17c6a0d2ce83372247c5b90692f1dc8a2311cef5
|
|
| MD5 |
44f016d31030c51971cbd413bf42fced
|
|
| BLAKE2b-256 |
4be6acd21e78acacd284e8d1e47fcbc9d372f19f31a338e9bc2bcd0ea4ecc60c
|