Process and move around images, ready for posting to my blogs.
Find a file
2022-06-20 11:16:28 -07:00
.gitignore Ignore settings files 2022-06-04 18:03:29 -07:00
LICENSE Initial commit 2022-06-05 00:59:02 +00:00
process.py Fix some bugs that caused the script to crash 2022-06-20 11:16:28 -07:00
README.md Enforce a maximum image width of 2000 pixels 2022-06-04 19:35:17 -07:00
requirements.txt First working version 2022-06-04 18:27:34 -07:00
resizing-notes.md Notes on what sizes to limit to, in the future 2022-06-04 18:01:03 -07:00
settings_template.py Sample settings 2022-06-04 18:04:50 -07:00

blog-image-processing

Process and move around images, ready for posting to my blogs.

This script assumes that youre providing it with a single argument: the filename of an image that needs processing.

The image will be copied to the folder thats found in the settings.py file as image_destination. The script will enforce a maximum image width of 2000 pixels. Additionally, if the image is wider than 500 pixels, a thumbnail will be created in the folder thats found in the settings.py file as thumbnail_destination.

The script will output a JSON dictionary with information about the images URL, height, and width. The base URL is specified in settings.py as image_urlbase and thumbnail_urlbase.