Export Images for IG
Add padding around image, drop shadows.
How to Use
Install packages.
pip install export_ig
Run
export_ig --input_path "*.jpg" --output_folder padded/ --subfolder \
--aspect_ratio 4x5 --shadow_offset 32 --radius 12 --shadow_color gray \
--pad 100 --bg_color white \
--n_jobs 10
input_path: glob string for input files. When using wildcard (*), make sure to wrap it in quotes so that it does not get expanded by bash.output_folder: folder to contain processed images.subfolder: when set, theoutput_folderis created within theinput_pathfolder.aspect_ratio: aspect ratio of output image. Auto adjusted for portrait and landscape. Should be separated by "x".shadow_offset: offset for shadow (in pixels). negative number leads to shadow on top-left diagonal of the image.radius: blur radius for the shadow.shadow_color: can be either hex string value (with or without #) or color names in {white, black, gray}bg_color: color for the padded background.pad: amount (in pixels) to pad.n_jobs: how many threads to use.
Examples
| Before | After |
|---|---|
Metadata
Release files for export-ig 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| export_ig-1.0.3.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| export_ig-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.5 kB
Release files / export_ig-1.0.3.tar.gz
| Download URL | export_ig-1.0.3.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7fa5bace989aa1d1b2db1be1611c2a22e7c7ffe84e3e7c44d63c9ffbfece807
|
|
BLAKE2b-256 checksum How to use checksums |
be41dc6d388d30b755ff576b27e0110f0710924afeca0df3e00418ed716a6477
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|
Release files / export_ig-1.0.3-py3-none-any.whl
| Download URL | export_ig-1.0.3-py3-none-any.whl |
|---|---|
| Size | 9.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9ad3ffae233c9621344b5895958eecdacdff8c6bdc4c2deccf4fed98423c3271
|
|
BLAKE2b-256 checksum How to use checksums |
875bd98b013609a6f47eb56d1ccf895970bfa258338fa5b2c0cd9160475f0f89
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.3
|