Changing the World S3 image generator

Today on my personal blog I wrote a blog post about how I’m going to change the world.  At the bottom of the post it contains this image:

Which when clicked links to http://changetheworld.bandonrandon.com.

Today I wanted to talk a bit about how that sub-domain image generator works. Because frankly I think it’s pretty cool.

All the images are being stored on Amazon S3 storage meaning that image display should be faster and better than my local host. I’m also using a resize script to generate image sizes based on the users need.

So basically it works like this:

  • The user types in the image size they would like and hits submit
  • We check to see if the size is within a given range (between 100 and 1000 and divisible by 10) and if so we proceed
  • Next, we check if the image is already on the server, If so we grab it, if not we create it.
  • If the image is created it is done using an image resize script then uploaded to amazon S3
  • We display a link to the new image and a link to it in the read-only text box.

Check it out and let me know what you think.

If anyone has any comments or  would like the code please contact me or leave a comment below

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s