Skip to main content
thumbS3
=======

Python module and command-line tool for creating thumbs on Amazon S3


### Installation

Install required packages:
```
sudo apt-get install python-dev libjpeg-dev libfreetype6 libfreetype6-dev zlib1g-dev
ln -s /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib
ln -s /usr/lib/x86_64-linux-gnu/libfreetype.so /usr/lib
ln -s /usr/lib/x86_64-linux-gnu/libz.so /usr/lib
```

Install module:
```
sudo pip install thumbS3
```


### Module Usage:
```
from thumbs3 import ThumbS3

th = ThumbS3("my_aws_key", "my_aws_secret", "http://s3-eu-west-1.amazonaws.com/my_bucket_name", 150, 150)
th.setDestinationFolder("/thumbs")
th.setSuffix("_thumb")
th.setVerbose()

photos = ["photo1.jpg", "photo2.jpg", "photo3.jpg"]

for name in photos:
th.create(name)

# Resulting thumbs (150x150px)
# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo1_thumb.jpg
# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo2_thumb.jpg
# http://s3-eu-west-1.amazonaws.com/my_bucket_name/thumbs/photo3_thumb.jpg
```

### Command-line Usage:
```
usage: thumbs3.py [-h] [-k KEY] [-s SECRET] [-f FILENAME] [--url URL]
[--folder FOLDER] [--suffix SUFFIX] [--width WIDTH]
[--height HEIGHT] [-v]

thumbS3 command-line tool for creating thumbs on Amazon S3

Arguments:
-h, --help show this help message and exit
-k KEY, --key KEY Amazon AWS access key
-s SECRET, --secret SECRET
Amazon AWS access key secret
-f FILENAME, --filename FILENAME
Image filename
--url URL Amazon S3 bucket url
--folder FOLDER Thumbs destination folder
--suffix SUFFIX Thumbs filename suffix
--width WIDTH Thumb width
--height HEIGHT Thumb height
-v, --verbose increase output verbosity
```

Release files for thumbS3 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for thumbS3 0.1.3
File Size Uploaded
thumbS3-0.1.3.tar.gz 2.6 kB Details

Release files / thumbS3-0.1.3.tar.gz

Download URL thumbS3-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
dc6d81dd26762825bce73c9220f83b8d79075c41d8b426aafedf56a5da59c634
BLAKE2b-256 checksum
How to use checksums
e39be1a64e3d89a81f817e6dff733c7dafe3386b74776ef563ee6198e80d3156
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1.3 This release

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page