Python 3 Script to Resize Images and Upload to Amazon AWS S3 Storage API Full Project For Beginners

 

 

s3imageresizer

A python module to import and resize pictures into amazon S3 storage.

Synopsis

Typical usecase: fetch a bunch of image and generate thumbnails of various sizes for each of them, stored in S3.

More explanation

For method parameters, see the code (there isn’t much of it 😉

S3ImageResizer does all image operations in-memory, without writing images to disk.

S3ImageResizer uses PIL, has reasonable defaults for downsizing images and handle images with alpha channels nicely.

Installation

s3imageresizer requires Pillow, which in turn needs external libraries. On ubuntu, you would for example need:

Then

Source code

https://github.com/erwan-lemonnier/s3-image-resizer

Leave a Reply