My favorites | Sign in
Logo
             
Search
for
Updated Nov 22, 2008 by lucasreddinger
Labels: Phase-Deploy, Featured
S3_Utilization  
How project sappho uses S3.

Getting your photos into S3

You must resize and upload your photos manually, at present. Tools such as IrfanView and Jets3t make batch conversions and uploads very quick and easy for Windows users.

You'll need to choose a bucket and a path. If you'd like to store your photos in the location http://BIG-BUCKET.s3.amazonaws.com/things/my_pictures/, you must create a bucket named BIG-BUCKET. Your path would then be things/my_pictures.

sappho uses a very specific directory structure. Within your chosen path, you'll have two folders: a and b.

  • a contains images with a long side of 120px.
  • b contains images with a long side of 640px.

If you're uploading one image named 00000001.jpg, you'll need it in two sizes, both with the same filename, in both of the folders a and b.

sappho requires a numerical filename with the extension .jpg. These are examples of valid image filenames:

  • 0.jpg
  • 00000001.jpg
  • 987654321098765432109876543210.jpg
These are examples of invalid image filenames:
  • 00000001.JPG
  • 00001jlr.jpg
  • 00000001.jpeg
  • 00000001.png

Once you get the two sizes uploaded for a given file name, the photo should appear when you visit /manage/import.php.

Automated scripts

Perhaps you'd like to code some shell scripts that automatically resize and upload your photos! That would be great!

When we have more time to code, such scripts may become a part of this project's code base. (See Issue 24.)


Sign in to add a comment
Hosted by Google Code