Cloudinary Blog

Why we moved from an in-house image management system to Cloudinary

By Adam Cox
Build VS. Buy
At Build.com, where I’m a software architect, we manage hundreds of millions of images. Our site offers more than 1 million home improvement products, such as tubs, toilets, cabinets, fireplaces – really any thing homeowners need for their improvement projects. And for each item, there are multiple images – product and gallery images, action shots, close-ups and thumbnails – that our visitors view from a variety of devices, including mobile phones, tablets, their desktop computers and our native app. In addition, these images are used in many view templates – on the landing page, via search, by category and in the cart.
 
Since our inception, we were using a homegrown system to manage and manipulate our images. We relied on Apache rules and proxies to a Java resizer app. But we ran into several problems with the system as our site grew, including:
  • Speed – It was slow and we were unable to do image transformations on-the-fly.
  • Limited features – We could only resize the height and width, proportionately, and crop for thumbnails.
  • Data consistency – We would upload new images to the site, but they wouldn’t be visible to customers.
  • Storage – With capacity problems and back-up issues, our IT operations staff was always having to help us deal with the images in our system.
  • Scaling – Uploading thousands of images caused a cascading set of issues, resulting in the system crashing and maxing out CPOs.
  • Image management – All images were managed through FTP, without any user interface (UI).
As our company evolved and expanded, we knew we had to find a better way to manage and deliver the best possible images to our buyers. We were spending too much time and too many resources maintaining the legacy system. That led us to a crossroads: Do we build a new system in-house, or should we look for a solution from a third-party vendor?
 
To aid in the decision-making process, we created a matrix that enabled us to evaluate the pros vs. cons of in-house vs. third-party, and identify the requirements any new system must meet:
  • Performance – Time to transform and the ability to create multiple variants, on-the-fly, from the original.
  • Optimization – Ability to reduce image weight by stripping metadata, set JPEG levels and use progressive JPEGs, leverage WebP for Chrome and other actions that speed page-load time.
  • Rich Feature Set – Multiple transformation options, including cropping capabilities, face detection, applying watermarks and delivering higher resolution images for retina display.
  • Accuracy – Proper cache purges to resolve data consistency issues and deliver new images to customers immediately.
  • Ease of Use – Should be easy to implement, integrate and migrate the large existing media library from the legacy system in order to minimize impact on operations.
As we narrowed down our decision to build or buy, we also debated key points, including cost, both in terms of dollars and man hours. These costs included: 
  • Common costs that would be incurred with either option (managing files, integration/migration to a new system, storage, back-up costs and training for the new system).
  • Opportunity costs (particularly in terms of the roadmap and functionality that may be required in the future).
  • Man hours required (for either building and maintaining the system or integrating and managing a third-party solution). 
Other considerations included:
  • Number of files we would need to manage
  • Total storage
  • Bandwidth usage 
  • Growth expectations
  • Potential scalability and reliability of each model to support a global audience or unexpected traffic spikes.
Ultimately, we realized that buying was our best option. We have a talented group of developers, but felt their time would be better spent working on new features for Build.com, rather than the tasks that an outsourced image management service should easily be able to handle.
 
We looked for a vendor that had experience serving companies that were larger than Build.com, which showed that it was capable of scaling, was considered reliable and offered high availability. If these companies were using a vendor and satisfied with its performance, we knew it would be a good fit for us. In addition, we wanted to ensure that the vendor’s performance was faster than our legacy system. Before making our decision, we ran side-by-side WebPageTest comparisons, which enabled us to test whether the vendor’s system offered significant speed increases and performance improvements. 
 
After considering a number of third-party vendors, we selected Cloudinary because it met – or exceeded – all our requirements. Since our move to Cloudinary in May 2016, we’ve seen a number of benefits:
  • Easy implementation – Available code libraries, upload widgets and ability to fetch images from remote locations made our start-up and transition a snap.
  • Greater productivity – Because we didn’t have to maintain and troubleshoot problems, like in our legacy system, our development team became more productive, saving use an average of 10 to 20 hours a month to re-focus on other important aspects.
  • Instant access to new features – As Cloudinary introduced new features, such as art-directed cropping and optimal format selection based on the browser, we could immediately take advantage of them.
  • Better utilization – There was less CPU usage on our servers, better CDN purging when files changed and improvements in back ups.
  • Improved performance – All web pages loaded on Chrome now use WebP for optimal performance, and we generally lowered the page size and reduced loading time.
The decision to build vs. buy a new image management system was not one we took lightly, since the success of our site – and our business – relies so heavily on images. Every company needs to take careful stock of its current challenges, what it wishes to accomplish, expectations for the future, and the risks and rewards of each option, before taking that next step.
 
Here I’ve shared our decision-making process, and the overall benefits from moving to Cloudinary. In my next blog, I’ll go into more detail about how we’re using Cloudinary and the results we have achieved.
 

Recent Blog Posts

Hipcamp Optimizes Images and Improves Page Load Times With Cloudinary

When creating a website that allows campers to discover great destinations, Hipcamp put a strong emphasis on featuring high-quality images that showcased the list of beautiful locations, regardless of whether users accessed the site on a desktop, tablet, or phone. Since 2015, Hipcamp has relied on Cloudinary’s image management solution to automate cropping and image optimization, enabling instant public delivery of photos, automatic tagging based on content recognition, and faster loading of webpages. In addition, Hipcamp was able to maintain the high standards it holds for the look and feel of its website.

Read more
New Image File Format: FUIF: Why Do We Need a New Image Format

In my last post, I introduced FUIF, a new, free, and universal image format I’ve created. In this post and other follow-up pieces, I will explain the why, what, and how of FUIF.

Even though JPEG is still the most widely-used image file format on the web, it has limitations, especially the subset of the format that has been implemented in browsers and that has, therefore, become the de facto standard. Because JPEG has a relatively verbose header, it cannot be used (at least not as is) for low-quality image placeholders (LQIP), for which you need a budget of a few hundred bytes. JPEG cannot encode alpha channels (transparency); it is restricted to 8 bits per channel; and its entropy coding is no longer state of the art. Also, JPEG is not fully “responsive by design.” There is no easy way to find a file’s truncation offsets and it is limited to a 1:8 downscale (the DC coefficients). If you want to use the same file for an 8K UHD display (7,680 pixels wide) and for a smart watch (320 pixels wide), 1:8 is not enough. And finally, JPEG does not work well with nonphotographic images and cannot do fully lossless compression.

Read more
 New Image File Format: FUIF:Lossy, Lossless, and Free

I've been working to create a new image format, which I'm calling FUIF, or Free Universal Image Format. That’s a rather pretentious name, I know. But I couldn’t call it the Free Lossy Image Format (FLIF) because that acronym is not available any more (see below) and FUIF can do lossless, too, so it wouldn’t be accurate either.

Read more
Optimizing Video Streaming and Delivery: Q&A with Doug Sillars

Doug Sillars, a digital nomad and a freelance mobile-performance expert, answers questions about video streaming and delivery, website optimization, and more.

Doug Sillars, a freelance mobile-performance expert and developer advocate, is a Google Developer Expert and the author of O’Reilly’s High Performance Android Apps. Given his extensive travels across the globe—from the UK to Siberia—with his wife, kids, and 11-year-old dog, Max, he has been referred to as a “digital nomad.” So far in 2018, Doug has spoken at more than 75 meetups and conferences!

Read more