Skip to main content

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, the output_folder is created within the input_path folder.
  • 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
taxi padded

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)

Source distribution for export-ig 1.0.3
File Size Uploaded Provenance
export_ig-1.0.3.tar.gz 8.3 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for export-ig 1.0.3
File Interpreter ABI Platform
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

Security for export-ig 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page