module documentation
pilutil.py
Provides enabled, generate_preview, thumbnail helper functions for image processing and PIL/Pillow operations. It resizes images, applies filters, generates thumbnails, and manipulates image metadata.
License: GNU General Public License v2 or later, Organization: ZMS Publishing
| Function | crop |
Crop image. |
| Function | enabled |
Return whether Pillow is available in the current runtime. |
| Function | generate |
Generate and persist a low-resolution preview image from a hi-res source. |
| Function | optimize |
Optimize image. |
| Function | resize |
Resize image. |
| Function | rotate |
Rotate image. |
| Function | thumbnail |
Tumbnail image. |
| Variable | security |
Undocumented |
Generate and persist a low-resolution preview image from a hi-res source.
The method reads object properties, derives a thumbnail via thumbnail, and stores both low-res and hi-res values back into object properties.