A simple micro application to serve images with customized cropping
Introduction
This micro application resizes existing images according to given query parameters. The application returns the image and saves the image as the previous filename suffixed with the query params. The intended usage is with a file server which will return this new image the second time when the url matches the new filename.
E.g. for an existing image image.jpg we use image.jpg?w=200 to set the width to 200 and save the new file as image.jpg?w=200
Configuration
The settings are read from environment variables. #### ECCEOMO_MEDIA_ROOT The absolute path to the root directory common to all media files. e.g. export ECCEHOMO_MEDIA_ROOT='/www/media' #### ECCEHOMO_MEDIA_URL Optional URL between domain and filename. e.g. export ECCEHOMO_MEDIA_URL='media' #### ECCEHOMO_DEFAULT_METHOD Set to contain if left unset. Defines a default method to use when height h and width w are specified with a without a method t. e.g. export ECCEHOMO_DEFAULT_METHOD='crop' #### ECCEHOMO_MINIMUM_LENGTH Sets a minimum accepted length for the width w and height h parameters. e.g. export ECCEHOMO_MINIMUM_LEGNTH=10 ## Usage There are three query parameters. Height h, Width, w, and method type t. Method defintions in python-resize-image readme
Release files for eccehomo 0.1.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| eccehomo-0.1.3.tar.gz | 4.6 kB | Details |
Release files / eccehomo-0.1.3.tar.gz
| Download URL | eccehomo-0.1.3.tar.gz |
|---|---|
| Size | 4.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0523a81a3774e492941527b297ac85f88be642a398a0536008447a77d4a4dcd6
|
|
BLAKE2b-256 checksum How to use checksums |
db724476336537a7ca78fd1438719cb46ba80a052d439f5808f55eff5a322c37
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |