How Yipit Scales Thumbnailing With Thumbor and Cloudfront(tech.yipit.com)
tech.yipit.com
How Yipit Scales Thumbnailing With Thumbor and Cloudfront
http://tech.yipit.com/2013/01/03/how-yipit-scales-thumbnailing-with-thumbor-and-cloudfront/
4 comments
I have been using Thumbr.it for a while now and I have to say that we are impressed with the speed and great support!
We'd love to see on the fly retina display processing added to it too ;)
We'd love to see on the fly retina display processing added to it too ;)
It's always encouraging to see others find similar solutions. I've been working on a asset management tool that dealt with thumbnail generation. Only I've done it in PHP.
First, I came across timthumb[1], but it was a little too heavy for my liking. Instead I whipped up a thumbnail-on-demand script with caching options in about 3 hours and 80 lines of code.
Now the best part -- I don't have to use a work-queue on the server side to offload thumbnailing. The browser will do that on first request, and results are cache from then on.
[1] - https://code.google.com/p/timthumb/
First, I came across timthumb[1], but it was a little too heavy for my liking. Instead I whipped up a thumbnail-on-demand script with caching options in about 3 hours and 80 lines of code.
Now the best part -- I don't have to use a work-queue on the server side to offload thumbnailing. The browser will do that on first request, and results are cache from then on.
[1] - https://code.google.com/p/timthumb/
Why not use a service like http://www.imgix.com/ instead?
Looks like a nice service. We definitely would have considered it. Thumbor is very easy to administer though, and we already use/trust Cloudfront.
Thank you so much for this! I've been searching for a similar service all along!! Looks awesome!!! Thanks :)
http://cloudinary.com/ as well.
I need a way to do this in Apache and/or PHP.
I think Cloudfront has a way to pass variables to your server so theoretically you can use any image generation package right?
I think Cloudfront has a way to pass variables to your server so theoretically you can use any image generation package right?
Cloudfront can vary objects by using a different uri stem, query params, or cookie contents. As noted in the article you can also route uri prefixs to your image sizer origin. So yes, I'd expect most image manipulation to be cachable using query strings for size/format/quality and a sane default for the base uri.
From a quick glance at Thumbor, it seems it also offers object detection (like faces), which is a nice add-on. Nice post, I didn't knew about this project, even though I'm working on the same space!