Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/play3rzer0/thumbnail-generator
Generate thumbnails for viewing image files.
https://github.com/play3rzer0/thumbnail-generator
automation images pil python thumbnail-generator
Last synced: about 4 hours ago
JSON representation
Generate thumbnails for viewing image files.
- Host: GitHub
- URL: https://github.com/play3rzer0/thumbnail-generator
- Owner: Play3rZer0
- Created: 2019-03-16T01:07:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-03-19T00:08:49.000Z (over 5 years ago)
- Last Synced: 2024-07-11T14:25:42.083Z (4 months ago)
- Topics: automation, images, pil, python, thumbnail-generator
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Thumbnail View Generator
This generates a thumbnail preview for images.
This is a convenient way to allow smaller versions of an image to be shared, rather than uploading the full high resolution image. The higher quality version of an image takes up more space and bandwidth.
By generating a smaller preview file, it saves space and time to upload to the cloud or data center.
I made it more interactive to allow the user to declare the dimension of width and height of the image using the x and y values in the size method.
size = x, y
The x denotes the width and y denotes the height. So for a thumbnail preview of 300 x 300, the following arguments will be passed to the size method.
size = 300, 300
I created an input value for x and y to allow user to specify the size of the thumbnail.
The images that will be generated into a thumbnail must be placed in the same folder or directory as the thumbnails.py file that contains the code.