With ImageQuery you are able to write image manipulations without needing
to learn some low-level API for the most use cases. It allows you to:
* simple manipulation like rescaling
* combining images
* handling text (note: fonts must be available locally)
* even more like creating drop shadows (using the alpha mask)
ImageQuery basicly provides an API similar to the well known QuerySet API,
which means:
* Most methods just return another ImageQuery
* Every bit of your image manipulation chain can be used/saved
* Image manipulations are lazy, they are only evaluated when needed
Some examples:
# load the image
iq = ImageQuery('some/file.png')
# scale it to 100x200 max
iq = iq.scale(100, 200)
iq.save('scaled/version.png')
# save the scaled version including a simple watermark
# note: this does not chenge "iq"
iq.paste('watermark.png', 'center', 'center').save('watermarked/version.png')
# create a grayscale version (without watermark of course)
iq = iq.grayscale()
iq.save('scaled_grayscale/version.png')
In addition ImageQuery provides some nice tools to make handling images
even more easy:
* support for Django storage API
* base class to manage multiple image formats
* included template tags (using formats) and filters (lowlevel)
to learn some low-level API for the most use cases. It allows you to:
* simple manipulation like rescaling
* combining images
* handling text (note: fonts must be available locally)
* even more like creating drop shadows (using the alpha mask)
ImageQuery basicly provides an API similar to the well known QuerySet API,
which means:
* Most methods just return another ImageQuery
* Every bit of your image manipulation chain can be used/saved
* Image manipulations are lazy, they are only evaluated when needed
Some examples:
# load the image
iq = ImageQuery('some/file.png')
# scale it to 100x200 max
iq = iq.scale(100, 200)
iq.save('scaled/version.png')
# save the scaled version including a simple watermark
# note: this does not chenge "iq"
iq.paste('watermark.png', 'center', 'center').save('watermarked/version.png')
# create a grayscale version (without watermark of course)
iq = iq.grayscale()
iq.save('scaled_grayscale/version.png')
In addition ImageQuery provides some nice tools to make handling images
even more easy:
* support for Django storage API
* base class to manage multiple image formats
* included template tags (using formats) and filters (lowlevel)
Metadata
Release files for django-imagequery 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| django-imagequery-0.2.1.tar.gz | 792.5 kB | Details |
Release files / django-imagequery-0.2.1.tar.gz
| Download URL | django-imagequery-0.2.1.tar.gz |
|---|---|
| Size | 792.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b10d0cf66524e972aeba20b0815e6063cd9f7f0dc52bf15ffaaba1c3d4d74f36
|
|
BLAKE2b-256 checksum How to use checksums |
7616a187725a85b0253e4cc656f8c0df78f9d11215547129238e78575bbfe2f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |