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 hashes)

Uploaded Source

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