Generating Thumbor URLs on iOS

Faster image loading, better caching, easy.

Square Engineering
Square Corner Blog
1 min readJun 18, 2014

--

Written by Jim Puls.

Heads up, we’ve moved! If you’d like to continue keeping up with the latest technical content from Square please visit us at our new home https://developer.squareup.com/blog

A little while back, we talked about dynamic images with Thumbor.

To recap:

Thumbor is an open-source, on-demand image service which allows for server-side cropping, resizing, and compositing of images. This is particularly useful for applications where the density and resolution of the target screen can vary wildly. Rather than downloading a large image and scaling it to fit the display, the image is requested at the exact desired size and the server does the work on-demand to resize it before delivering.

To go with our Pollexor library on Android, today we’ve open-sourced ThumborURL to do the same on iOS.

It’s really slick and very easy to use. In five lines of code, you can request a resized version of an image:

Try it out! Let us know what you think.

--

--