Skip to main content

Simple image manipulate based on PIL.

Project description

Eirx - Easy Image Resizer ===

Resize image in an easy way.

Installation ===

$ pip install eirx

Usage ===

$ eirx MODE SRC DEST

where MODE is one of

  • wWIDTHhHEIGHT : to certain width and height (e.g. w200h300 to resize the image to 200px in width and 300px in height)

  • wWIDTH : to certain width, with aspect ratio kept

  • wWIDTHa : to certain width, without aspect ratio kept

  • hHEIGHT : to certain height, with aspect ratio kept

  • hHEIGHTa : to certain height, without aspect ratio kept

SRC and DEST are files.

Quick Start API ===

>>> from eirx.parse import parse
>>> from PIL import Image
>>>
>>> args, adjust = parse('w200h300')
>>> im = adjust(Image.open('hello.png'), **args)
>>> im.show()
>>> im.save('output.png')

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

eirx-0.1.tar.gz (2.8 kB view details)

Uploaded Source

File details

Details for the file eirx-0.1.tar.gz.

File metadata

  • Download URL: eirx-0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for eirx-0.1.tar.gz
Algorithm Hash digest
SHA256 3f183565b1e5b708752db0d94514edf34ab004533c1361478170309245e0b36d
MD5 9376c08b5e85e074263e8cc28c752ea5
BLAKE2b-256 3920b2aacaa39c2fbddc514538dad2d0eb8b3c573e0ec7b5b2827270b45fd949

See more details on using hashes here.

Supported by

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