Image Thumbs
Easy-to-use library to create image thumbnails from images existing on some (cloud) object storage or from disk.
Currently implemented is a connection to Google Cloud Storage, but it can be easily extended to other providers.
How to use
Configure what thumbnails you would like to have:
thumbs:
- name: standard # this name will be added to the thumbnail with an underscore (_)
quality: 80 # PNG ignores this variable as it is always lossless
size: # Target size of the thumbnail. May not always be exact.
mode: fit # available are: 'fit' and 'crop'
- name: mini
quality: 80
size:
mode: crop
Then use it in your code
async