Skip to main content

Package for processing images for Instagram upload.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

export_ig-1.0.3.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

export_ig-1.0.3-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file export_ig-1.0.3.tar.gz.

File metadata

  • Download URL: export_ig-1.0.3.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for export_ig-1.0.3.tar.gz
Algorithm Hash digest
SHA256 d7fa5bace989aa1d1b2db1be1611c2a22e7c7ffe84e3e7c44d63c9ffbfece807
MD5 65bb0d52b4f36da71ca20450fe471b55
BLAKE2b-256 be41dc6d388d30b755ff576b27e0110f0710924afeca0df3e00418ed716a6477

See more details on using hashes here.

File details

Details for the file export_ig-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: export_ig-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for export_ig-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9ad3ffae233c9621344b5895958eecdacdff8c6bdc4c2deccf4fed98423c3271
MD5 c5e4b319aebd03e9cd2c9b52506f2476
BLAKE2b-256 875bd98b013609a6f47eb56d1ccf895970bfa258338fa5b2c0cd9160475f0f89

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page