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




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


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.


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


Source code

Leave a Reply