<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by imgix on Medium]]></title>
        <description><![CDATA[Stories by imgix on Medium]]></description>
        <link>https://medium.com/@imgix?source=rss-d44049439f2c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ksoaBcp0qw2HfstnpvCfAw.png</url>
            <title>Stories by imgix on Medium</title>
            <link>https://medium.com/@imgix?source=rss-d44049439f2c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 23:02:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@imgix/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[How imgix Changed the Way I Build Apps]]></title>
            <link>https://medium.com/@imgix/how-imgix-changed-the-way-i-build-apps-81a829d729f5?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/81a829d729f5</guid>
            <category><![CDATA[responsive-design]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Mon, 18 Dec 2017 22:51:12 GMT</pubDate>
            <atom:updated>2017-12-18T22:51:12.436Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*OcGDnDUcMJQTA1AU." /></figure><p>I’ve run into a lot of varied challenges while building websites and apps over the last two decades. Every project I’ve tackled has presented unique problems, but one consistent issue has been figuring out the best way to deal with images. Every part of the image workflow is difficult; Image files are bulky, and there are lots of formats to deal with. This results in a lot of time spent processing images, and a lot of storage space required for derivatives.</p><p>imgix’s dynamic image workflow abstracts those complexities. A traditional image flow might look something like this:</p><ol><li>A user uploads an image. For this example, let’s say it’s a profile photo.</li><li>A server running ImageMagick or a similar program creates derivative versions of the uploaded image. For something like a profile photo that’s used in many contexts throughout a site or app, the number of derivatives for each upload can be quite high. I’ve seen derivative counts in the dozens before!</li><li>The original image and generated derivatives are uploaded from the image server to a permanent storage location, e.g. Amazon S3.</li></ol><p>With imgix, the process is inverted. Instead of generating all derivatives up front, they’re requested and generated on the fly. Each derivative can be created easily by changing the appended parameters in the image URL. This allows developers a lot of additional flexibility, letting them solve some long-standing problems in new ways.</p><p>App and site redesigns happen fairly often at many companies. When image derivatives are generated up front, any time image sizes are changed in a design, new sizes of every image have to be generated to match. These batch operations can quickly become expensive and time-consuming, even with a moderate number of images. I’ve been involved with projects where new designs had to be watered down because the time and cost of generating millions of new thumbnails couldn’t be justified.</p><p>A dynamic image workflow avoids this issue entirely. Since derivatives are generated and stored based on query string parameters, changing image sizes for a design can be as easy as changing mycoolimage.png?w=300 to mycoolimage.png?w=600. Then, as each image is requested, imgix will generate and cache the new derivative automatically. Since these derivatives aren’t generated until they’re requested, no unnecessary time, bandwidth, or storage costs are incurred. That gives both designers and developers more freedom to experiment, and come up with the best solution for every challenge they have to tackle.</p><p>When working with a dynamic image API, you also don’t have to worry about upload file types. Many applications limit file uploads to JPG/PNG/GIF, but an application backed by a dynamic image workflow needn’t worry about this. Images can come in <a href="https://docs.imgix.com/resources/image-formats">any format supported by imgix</a>, which is especially useful for user-generated content. When it’s time to render a derivative, you can simply pick the best output format for the use case. For example, imgix’s auto=format parameter automatically selects the best output format based on the requesting browser (serving WebP to Chrome, and a developer-selected fallback to other browsers).</p><p>The advent of high-DPI (“Retina”) displays has been another pain point for traditional image workflows. If all derivatives are generated up front, adding 2x and 3x high-DPI versions can drastically increase monthly storage and processing costs, even though these versions aren’t likely to be requested heavily.</p><p>A dynamic image workflow helps again here. Instead of generating and storing every needed derivative for each image at 1x, 2x, and 3x versions, developers can pass along a dpr parameter based on the user’s device. A simple (rather contrived) example of this can be seen here:</p><pre>let dpr = window.devicePixelRatio || 1<br>let width = 200<br>let img = new Image()<br></pre><pre>img.src = `https://test.imgix.net/test.png?w=${width}&amp;dpr=${dpr}`<br>img.width = width<br></pre><pre>document.body.appendChild(img)</pre><p>That example will display an image that is 200 <em>CSS pixels</em> wide, but 200 * dpr <em>physical pixels</em> wide. On a 2x display, there would be 400 physical pixels, 600 on a 3x display, etc. A neat side effect of this approach: As more and more people use devices with high-DPI screens, the 1x version may even eventually fall out of cache, without any additional developer effort.</p><p>I recently used imgix to build out a user-facing photo editor. Where it really shone is in allowing easy edits and interoperability with other systems. Instead of having to manually generate and store each new user-generated crop, I simply stored a set of key/value pairs, mapping them to imgix parameters. By exposing those parameters to users, I was able to quickly create a non-destructive editor that only has to store a simple hash of data. A similar approach could also be used to show real-time previews of edits, backed by imgix (you can <a href="https://docs.imgix.com/apis/url/stylize/blur">see examples</a> of this in the imgix URL API documentation).</p><p>These are just a few ways imgix has helped me rethink my approach to common development issues. By leveraging imgix, I’m able to solve these problems easier, faster, and often better than I could otherwise, leaving me with more time to spend on other parts of my job.</p><p><em>This article was originally published by Paul Straw at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81a829d729f5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The 5 Most Common Image Mistakes for E-commerce Companies]]></title>
            <link>https://medium.com/@imgix/the-5-most-common-image-mistakes-for-e-commerce-companies-a8c454f69769?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8c454f69769</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 14 Nov 2017 23:00:40 GMT</pubDate>
            <atom:updated>2017-11-14T23:00:40.229Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*3500wAQSmD8Up2pi." /></figure><p>When it comes to e-commerce, study after study has shown that compelling imagery gets more clicks, leads to longer engagement and drives more sales. Pictures sell. It’s no longer up for debate.</p><p>But despite the importance the e-commerce industry puts on showcasing products with beautiful images, significantly less thought is given to how those images affect web performance. In the rush to optimize how their websites look, many e-commerce professionals ignore small tweaks that could make a big difference to how they load.</p><p>This, we think, is a mistake. The simple fact is that page load speed has a huge influence on a host of other behaviors, and image performance is one of the biggest contributors to perceived load speeds. By avoiding a few common errors, e-commerce professionals can get the most out of their imagery.</p><p>Here are the most common image mistakes we see the e-commerce industry making.</p><h3>Not Fitting the Image to the Container</h3><p>E-commerce retailers have taken the importance of high-quality product photos to heart, and high-definition photography has become the norm. Unfortunately, this has led to the opposite problem: many retailers simply upload the highest-definition photo available for each product, regardless of how large the image will actually be displayed.</p><p>This is a problem. Extra megapixels add to the image’s file size, contributing significantly to load time. Yet if the photo isn’t being displayed at this size, the browser will simply shrink the photo to fit the container, and all those pixels will be wasted.</p><p>You see this problem especially with so-called “hero images,” full-width photos that often grace the tops of pages in trendy modern designs. They require larger files, but it is not uncommon for e-commerce sites to disregard the difference between full-width on desktop and full-width on mobile. A hero image might need to be 1920 pixels wide to display on desktop with no pixelation, but only 812 pixels wide display on the latest iPhone. If the same image file is used for both, it mobile load speed will be impacted.</p><p>The answer is to have different image files for use at different responsive breakpoints, rather than simply serving the same file and relying on the browser to resize it. Obviously, real-time image processing with a service like imgix makes this very easy to manage at scale, since you can upload a full-size master and specify the proper size for each screen in the image request. But it can be manageable for smaller sites with a limited product library using batch scripts or even manual editing, and can lead to significantly better image performance.</p><h3>Not Using Progressive JPEG</h3><p>You’re probably familiar with how a web browser loads a traditional JPEG image — it starts at the top and gradually reveals the full image as it loads. This usually happens fast for most images on modern connections, but becomes more noticeable the larger the image is and the slower the connection. It can be especially visible on mobile, where connectivity is often not ideal and small screen sizes draw more attention to absent visual elements.</p><p>E-commerce sites need to capture attention immediately or conversions suffer, and the photos are the first thing that registers in the minds of potential customers. For that reason, even a placeholder usually performs better than a big blank space.</p><p>Enter the progressive JPEG, a newer style of encoding that solves this problem. Rather than reveal the image from top to bottom, progressive JPEG immediately displays a pixelated version of the entire image and then refines this into the full-quality image as the file loads completely. For a better idea of what this looks like, <a href="http://www.patrickmeenan.com/progressive/view.php?img=https%3A%2F%2Fwww.nps.gov%2Fplanyourvisit%2Fimages%2FGrandCanyonSunset_960w.jpg">check out this interactive demonstration</a>.</p><p>Since the entire image displays immediately, progressive JPEGs feel much faster to visitors than traditional JPEGs. Due to a quirk in the way they’re encoded, they’re often 2 to 10 percent smaller than traditional JPEGs many times they don’t just seem faster, they are faster.</p><p>For these reasons progressive JPEGs are quickly becoming standard for image-heavy sites — Facebook, Twitter, Pinterest and many others now use this format extensively. Progressive JPEG is also a part of Google’s <a href="https://developers.google.com/speed/docs/insights/OptimizeImages">PageSpeed recommendations</a>, so there are potential SEO benefits for using it as well.</p><h3>Not Deleting Metadata from Thumbnail Images</h3><p>EXIF metadata is archival data that is attached to image files. Its purpose is to record information about how an image was captured, such as the camera it was shot on, aperture settings, and copyright data. Online, metadata has no effect on how the image is displayed, and it is usually irrelevant to end viewers, who don’t really need to know how a given photo was taken. It’s also relatively tiny — metadata only takes up about 52 kilobytes of an average JPEG.</p><p>This doesn’t seem like a problem for normal images, which are so much larger than this that the load impact is basically negligible. Yet it becomes an issue with thumbnails, where the metadata can sometimes be as much as 30 percent of the file size.</p><p>Since there are usually many thumbnail images on pages where thumbnails are displayed, and this can add up to a lot of wasted data. It can also have SEO impacts, as removing metadata is one thing that Google recommends as a best practice for image handling.</p><p>You can solve this problem by simply removing the metadata from every image you upload. Of course, another nice thing about using a service like imgix is that you can leave the metadata on your master for archival purposes while serving all derivative images without it automatically. imgix even lets you <a href="https://docs.imgix.com/tutorials/extracting-metadata-json-output-format">extract this data in JSON format</a> if you need it for your application.</p><h3>Not Using Multiplexing to Serve Thumbnail Images</h3><p>While we’re on the subject of thumbnails, there’s another way major way they can negatively affect page performance: increasing the number of requests to the server.</p><p>If you aren’t familiar with networking technology, you might assume loading a webpage is a single step. But the client actually has to make separate requests for all of the art, scripts, videos, CSS and HTML that are assembled to create the finished webpage. Every time the client has to make a separate request and wait for a response, this adds a small amount of latency to that will affect the load time.</p><p>For many pages, there aren’t enough requests for this to be a significant source of slowdown. Yet on pages where thumbnails are the predominant visual element, such as search result pages, it can become a problem. Depending on how these are set up, each thumbnail might require a separate request, and that can cause a lot of lag.</p><p>Fortunately, modern HTTP/2 requests allow for a technique called multiplexing, in which all of the image requests are bundled together into a single request that is sent to the server, which then executes and serves them. This can deliver noticeable performance gains on pages with many images, and should be used wherever possible.</p><h3>Not Optimizing Image Data for Social and SEO</h3><p>With all of the focus on the way that images look on a web page, it can be easy to forget that they also have an important role to play off of the page. In an era where search engines are increasingly trying to add visuals to their results pages, images are becoming a more important aspect of SEO. They’re also critical for success on social media, where a compelling image is often the the difference between a link being clicked or ignored.</p><p>Since visual media isn’t easily indexable the way that text is, both search engines and social networks rely on text cues and meta tags to determine what images should be used and how they should be displayed. It’s therefore crucial that e-commerce sites not neglect to include this data.</p><p>Every image displayed in on an e-commerce site should have a descriptive file name, and a keyword-dense alt text description that search engines can use to index it. Thumbnails and full-size images should have different alt text, to avoid being penalized for duplicate content. If possible, add all images to your xml sitemap.</p><p>Social media sites use special metadata tags to determine which image should be displayed with each page when it appears in their feed. Both Facebook and Twitter will look at <a href="http://ogp.me/">OpenGraph markup</a> to determine which image to use, but Twitter also has its own <a href="https://developer.twitter.com/en/docs/tweets/optimize-with-cards/overview/markup">Twitter Card Markup</a> that it will reference. This should be set for every page to avoid having the wrong image appear in social feeds. It can also be helpful to generate separate images at the recommended sizes for each site, <a href="https://blog.imgix.com/2016/03/04/motif-open-graph-images.html">something that imgix simplifies</a>.</p><p><em>This article was originally published by Jon Xavier at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8c454f69769" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LQIP Your Images for Fast Loading]]></title>
            <link>https://medium.com/@imgix/lqip-your-images-for-fast-loading-2523d9ee4a62?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/2523d9ee4a62</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 14 Nov 2017 22:59:16 GMT</pubDate>
            <atom:updated>2017-11-14T22:59:40.153Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*KqKVbStQvMdWUyEf." /></figure><p>“Page weight” may well become the new chant to replace “<a href="https://www.youtube.com/watch?v=BSJS6mgqV64">developers, developers, developers</a>.” As websites continue to become more visually rich (and need to, to be effective), ensuring that visitors don’t have to wait for images is paramount.</p><p>So, how to make sure that your site loads as quickly as possible but still with a visually compelling experience? The <a href="https://www.guypo.com/introducing-lqip-low-quality-image-placeholders/">Low-Quality Image Placeholders (LQIP) method</a> initially loads a low-quality, smaller version of the final image to fill in the container until the high-resolution version can load.</p><p>Serving both versions with imgix removes the need to maintain separate copies of the image. For example, here are the LQIP and full-resolution versions of a jellyfish:</p><p>Original (800×400, 64kB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*WlUbz7DudxgkMWVv." /></figure><p>LQIP Version, blur=200&amp;px=16&amp;auto=format (800×400, 3–7 kB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*dT4h7ayX4yd8Z8MU." /></figure><p>Even at the LQIP image’s low resolution, the viewer gets a sense of the shape and vibrant colors, in an image that’s a fraction of the original’s size. The LQIP image will display incredibly quickly even on low-bandwidth connections, while the sharper image loads in the background and eventually replaces it. Let’s see how the LQIP image is built.</p><h3>Parameters for LQIP Images</h3><p>There are three factors needed to create an effective LQIP image: detail reduction, color palette reduction, and image compression — imgix handles all three.</p><ol><li>For detail reduction, we applied <a href="https://docs.imgix.com/apis/url/stylize/blur">blur=200</a>, the maximum value, to reduce the image to large areas of color.</li><li>Next, we applied <a href="https://docs.imgix.com/apis/url/stylize/px">px=16</a>, which simplifies the palette by pixellating the image into large color blocks. If you don’t want a pixellated look, experimenting with the <a href="https://docs.imgix.com/apis/url/format/colorquant">colorquant</a> parameter can also be effective.</li><li>Finally, we improved the image compression by choosing based on browser capabilities with auto=format. In Chrome, it changes to WebP, and the size goes down to 3kB. For other browsers, it defaults to JPEG, which still shrinks the file to 8kB.</li></ol><p>Regardless of the specific parameters you use to create your LQIP images, changing them across your entire image library is easy to do programmatically with imgix. There’s no need to manually run a script to create the new versions or keep both copies — just apply parameters as needed to get the look you want.</p><h3>Serving and Swapping Out LQIP Images</h3><p>Once you’ve created the URLs for both versions of the image, you just need to tell the browser to load the LQIP versions of your images first, and then provide a little script to swap them with the higher-resolution versions once they’re loaded. The LQIP version is loaded first as the src, and the script swaps in the high-resolution version from data-src.</p><pre>&lt;img data-src=&quot;https://assets.imgix.net/unsplash/jellyfish.jpg?w=800&amp;h=400&amp;fit=crop&amp;crop=entropy&quot;<br>          src=&quot;https://assets.imgix.net/unsplash/jellyfish.jpg?w=800&amp;h=400&amp;fit=crop&amp;crop=entropy&amp;px=16&amp;blur=200&amp;fm=webp&quot;<br>&gt;</pre><pre>&lt;script&gt;<br>    // Script goes just before &lt;/body&gt;<br>    // Script from https://varvy.com/pagespeed/defer-images.html<br>    function init() {<br>        var imgDefer = document.getElementsByTagName(&#39;img&#39;);<br>        for (var i=0; i&lt;imgDefer.length; i++) {<br>            if(imgDefer[i].getAttribute(&#39;data-src&#39;)) {<br>                imgDefer[i].setAttribute(&#39;src&#39;,imgDefer[i].getAttribute(&#39;data-src&#39;));<br>            }<br>        }<br>    }<br>    window.onload = init;<br>&lt;/script&gt;</pre><p><a href="https://blog.imgix.com/demos/lqip-demo.html"><strong>SEE DEMO</strong></a></p><p>You can use this method along with <a href="https://github.com/aFarkas/lazysizes#lqipblurry-image-placeholderblur-up-image-technique">lazysizes</a> if you want lazyloading in addition to the speed savings from LQIP.</p><p><strong>Note:</strong> Using LQIP reduces the total number of bytes to display something useful to the viewer, but it does increase the total page weight and doubles the number of image requests required. To minimize any effects on performance, both images should be optimized and served at the correct size for their containers.</p><h3>Conclusion</h3><p>LQIP is a simple, easy-to-implement way to give your users a visually rich experience quickly. imgix makes it even simpler by providing a highly flexible API that enables you to easily apply the same parameter set across a huge image catalog to create both the high- and low-resolution versions from the same master image, non-destructively.</p><p><em>This article was originally published by Carol Gunby at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2523d9ee4a62" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Happens When You Purge an Image]]></title>
            <link>https://medium.com/@imgix/what-happens-when-you-purge-an-image-30d7d787f35b?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/30d7d787f35b</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Wed, 25 Oct 2017 18:31:00 GMT</pubDate>
            <atom:updated>2017-10-25T18:31:00.475Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*5pfcOB282hYsfch_." /></figure><p>One area where we get a lot of questions is around purging images. Although purging is a familiar concept to anyone who has previously worked with Content Delivery Networks, or indeed any distributed system that needs to sync data between nodes, the concept is not the most intuitive, and every purge system functions differently. New users sometimes have an incomplete understanding of the purge process, and that can lead to confusion when the system performs differently than expected. For that reason, we thought some clarity around how image purges work in imgix would prove helpful.</p><h3>Image purges defined</h3><p>First off, what is a purge in this context?</p><p>Every image served through imgix is cached centrally and at edge nodes throughout our global CDN network. You can <a href="https://blog.imgix.com/2017/07/24/what-happens-image-request.html">read a bit more about that here</a>, but the important thing to understand for our purposes is that a single master image file stored in a Source becomes many derivative image files stored in multiple locations within imgix once the system starts serving it.</p><p>Among these is a full-sized image cached in our rendering cluster, called the “Origin Cache,” which is used rather than the master image to fulfill all requests after the first. This image is periodically revalidated against the Source so that everything stays in sync and current, subject to a max age parameter set in Cache-Control header for the file. The default max age in Source configuration is one year. Customers can also define their own value on a per-Source or per-image basis.</p><p>This caching scheme cuts down on latency, since we don’t have to request a new version of the master every time there’s a new request. But it also means that changes to the master image stored in the Source aren’t immediately applied to derivatives across our system. Rather, these changes will only be applied once the Origin Cache image’s max age is reached and it is re-validated. For faster results, it is necessary to revalidate the image manually by initiating a purge request.</p><p>There are two situations where a purge is necessary:</p><ul><li>When you need to change the image in the Source by overwriting it with a new image that has the same file name.</li><li>When you need to completely eliminate an unwanted or out-of-date image that’s being served through imgix.</li></ul><p>For more information on how to initiate a purge request, <a href="https://docs.imgix.com/setup/purging-images">see our Purging Images guide</a>. For now, what we’re really concerned with is what happens once that request is made.</p><h3>The steps of a purge</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*y9rxol2U8Xa6RE89." /></figure><p>Once a purge request is made, the first thing that happens is that imgix will revalidate the Origin Cache image that is stored in our rendering cluster, verifying that the image in the Source is indeed different from the current Origin Cache. If so, it will replace the image in the Origin Cache.</p><p>Having updated the Origin Cache, imgix then deletes every derivative image from the CDN that was made from that master image. Changes proceed through the network from the point farthest from an end user to the point closest: first the Origin Cache, then the CDN shield, then the edge nodes.</p><p>Thereafter, requests are fulfilled as if it was the first time that variant was requested, with the rendering cluster applying transformations to the new Origin Cache image, serving and caching the result.</p><p>So, to recap, it goes:</p><ol><li>Revalidate</li><li>Update Origin Cache</li><li>Delete derivatives from CDN</li><li>Regenerate derivatives as they are requested from the new Origin Cache</li></ol><h3>Implications</h3><p>This system has some important implications that users should keep in mind:</p><ul><li><strong>Purging an image has no effect on the master image file stored in your Source.</strong> Any changes you require for this image must be completed before the purge is initiated. If there isn’t a change to the master, the purge will not complete because it will stop at the revalidation step.</li><li>Purging doesn’t, and can’t, affect an end user’s browser cache. If you’ve initiated a purge but the old image still seems to appear when you visit your page, verify that your browser cache has been updated before moving on to more advanced troubleshooting.</li><li>The purge process isn’t instantaneous, and there’s a chance that the old image will still be served while it’s being completed. Time to completion depends on the size of the job and the number of jobs in the queue, but it’s usually fairly quick — it should take no longer than about 30 seconds, and the vast majority of purges will complete considerably sooner.</li><li>As noted, purging an image also purges all derivatives of that image. This means special care should be taken when purging images that are being used for compositing, as this can have wider effects than is usually preferable. For example, if an image file that’s being used as a watermark is purged, imgix will purge not only the watermark file but also every image that watermark was applied to.</li><li>Purging an image means that requests for that image will see a slight latency uptick until the cache has regenerated, as imgix must pull from the master and process as though it was a new image.</li></ul><p><em>This article was originally published by Jon Xavier at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=30d7d787f35b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State of the URL API]]></title>
            <link>https://medium.com/@imgix/state-of-the-url-api-54a6f364a9f8?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a6f364a9f8</guid>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 24 Oct 2017 19:33:52 GMT</pubDate>
            <atom:updated>2017-10-24T19:33:52.860Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*ZOus40nCBGYkL4sS." /></figure><p>When you’re looking for information about an imgix feature, the <a href="https://docs.imgix.com/apis/url">API documentation</a> is your friend — every parameter in the service is listed with examples, ranges, and default values. We also have <a href="https://docs.imgix.com/tutorials">in-depth tutorials</a> for more complex multi-parameter use cases.</p><p>This is great for humans who need to know the ins and outs of imgix, but what about machines? If you’re building tools, libraries, or URL generators based on our Image URL API, having a single, machine-readable source of truth about the capabilities of all available parameters is crucial. Fortunately, it’s <a href="https://github.com/imgix/imgix-url-params/">available on GitHub in JSON format</a> and as <a href="https://github.com/imgix/imgix-url-params/blob/master/bower.json">Bower</a> and <a href="https://www.npmjs.com/package/imgix-url-params">NPM</a> packages.</p><p>Because it can be plugged directly into your projects, you can use the imgix-url-params distribution file to validate parameter inputs, build UI components, or programmatically assemble imgix URLs. It lists all pertinent information about each parameter, including input type expectations, ranges, defaults, and documentation links. The specification comes in two formats:</p><ul><li>dist/parameters.json is a JSON file with maps of all available parameters and their properties. It also includes a map of aliases for easy lookup of alternate parameter names.</li><li>dist/parameters.js is a <a href="https://github.com/umdjs/umd">UMD</a> wrapper around the JSON file, allowing it to be loaded easily in a &lt;script&gt; tag and accessed via a global imgixParameters object.</li></ul><p>We use these files internally to set ranges in our <a href="https://sandbox.imgix.com/">Sandbox tool</a> and documentation examples, ensuring that UI components conform to each parameter’s expectations. Now you can do the same — for instructions about how to add them to your project, <a href="https://github.com/imgix/imgix-url-params/">check out the repo on GitHub</a>.</p><p><em>This article was originally published by Carol Gunby at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a6f364a9f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[imgix + Google Cloud Storage™ = More Source Options]]></title>
            <link>https://medium.com/@imgix/imgix-google-cloud-storage-more-source-options-8318c3766a28?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8318c3766a28</guid>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Wed, 18 Oct 2017 16:29:11 GMT</pubDate>
            <atom:updated>2017-10-18T16:30:12.885Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*NV3tyr3am9Kb36Gy." /></figure><p>One of imgix’s core values is giving our customers flexibility in their image storage. We believe you shouldn’t have to move your images onto another storage system to take advantage of our imaging infrastructure, which is why we offer multiple ways to connect to them where they already live.</p><p>Our existing Amazon S3, Web Folder, and Web Proxy solutions cover a wide swath of our customers’ needs, and <strong>we’ve now added support for the Google Cloud Storage™ service as well, a much-requested option.</strong></p><p>Setting up a Source with Google Cloud Storage works similarly to Amazon S3; simply generate your access key and secret key on the Google side, then plug in those values, the bucket name, and an optional prefix to set up the Source and start serving images. And because you’re providing your credentials, you won’t need to make the images public.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/732/0*emen9r44guh2BvEf." /></figure><p>For more detailed setup instructions, see the <a href="https://docs.imgix.com/setup/creating-sources/google-cloud-storage">Google Cloud Storage Setup Guide</a> or watch the video below.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fplayer.vimeo.com%2Fvideo%2F237626060&amp;dntp=1&amp;url=https%3A%2F%2Fvimeo.com%2F237626060&amp;image=https%3A%2F%2Fi.vimeocdn.com%2Fvideo%2F660115028_1280.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=vimeo" width="1920" height="1080" frameborder="0" scrolling="no"><a href="https://medium.com/media/dbd268e2d9644e2321ed25e60b7f962a/href">https://medium.com/media/dbd268e2d9644e2321ed25e60b7f962a/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8318c3766a28" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Conference Recap: Shop.org]]></title>
            <link>https://medium.com/@imgix/conference-recap-shop-org-a616fe31c4e?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/a616fe31c4e</guid>
            <category><![CDATA[ecommerce]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 10 Oct 2017 18:51:15 GMT</pubDate>
            <atom:updated>2017-10-10T18:52:48.424Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*JX9jgCTXEju8Cdsw." /></figure><p>The imgix team just came back from Los Angeles, where we attended and sponsored a booth at NRF’s Shop.org conference, focused on e-commerce with this year’s theme: “This Is Digital”.</p><p>In line with the theme, current and near-future technologies were the focus at the conference. It was hard to pass a session or booth without hearing about the wonders of machine learning and what it can do with your mountain of customer data, or seeing the now-cliche scene of someone in a VR headset, mouth agape, wandering a digital version of a store.</p><p>And there are really incredible things happening tech-wise that will alter the face of e-commerce and retail in general. Disney shared how they’re leveraging customer data to create custom experiences online for customers that increase engagement and hopefully drive conversions. Instead of static websites that are the same for every visitor, you might encounter one of the many iterations of the Disney website based on your browsing history, purchasing decisions, etc.</p><p>Deloitte Digital had a booth that allowed you to virtually visit a campsite and interact with potential products that you might want to buy for your next trip. You even had the opportunity to sit and roast marshmallows, although you would have had to go to the Salesforce booth to get an actual gourmet s’more.</p><p>These new features and possibilities are great, and many sessions focused on how e-commerce giants could take on the great behemoth that is Amazon by personalizing the experience for their customers and building enough loyalty to overcome a great price or easy checkout.</p><p>We felt that some of the fundamentals of e-commerce were not focused on — specifically around maximizing conversions, creating easy checkout flows, and having a seamless/enjoyable customer experience. These are still fundamental challenges for many e-commerce companies, even if they’re admittedly less flashy than personal shopping robots.</p><p>Take for instance, something as fundamental as website load speed. Of the dozens of companies we spoke to that ran a <a href="https://pageweight.imgix.com/">PageWeight</a> report, images generally accounted for 50% of the “weight” of the page and optimizing those images could save, on average, 4 seconds of load time. When even a 1 second delay can drop conversions by 6% alone, this important topic was minimally discussed.</p><p>Creating a fast, beautiful, and easy-to-maintain customer experience online is crucial and we thought a major piece of the e-commerce puzzle was underrepresented at Shop.org. One breakout session did focus on this topic — <a href="https://www.slideshare.net/NationalRetailFederation/putting-the-instant-in-instant-gratification">“Putting the Instant in Instant Gratification”</a> — which we highly recommend checking out if you have a few minutes. In a <a href="https://shop.org/2017-session-materials">sea of sessions</a> and big names, it’s easy for fundamentals like this to get lost, but that doesn’t make them less important.</p><p>Overall, it was an effective conference that brought many of the big names in retail together, although in the future we’d like to see at least as much focus on actionable things e-commerce companies can do to improve their business today as sexy, forward-looking tech that might bear fruit someday.</p><p><em>This article was originally published by Nick Rojas at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a616fe31c4e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Art-Direct Responsive Images with Focal Point Cropping]]></title>
            <link>https://medium.com/@imgix/art-direct-responsive-images-with-focal-point-cropping-bcac4d1608d3?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcac4d1608d3</guid>
            <category><![CDATA[responsive-design]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 19 Sep 2017 22:48:43 GMT</pubDate>
            <atom:updated>2017-09-19T22:48:43.206Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*hFAP_HlQAS2o-TwjQD2C3w.gif" /></figure><p>As responsive design patterns continue to consolidate into best practices, it’s become easier for designers and developers to think beyond just resizing and cropping images, and address how to maximize the impact of each image. Responsive art direction, with each image cropped to keep focus on the key elements at each size, is now easier than ever. In addition to our automated methods of <a href="https://docs.imgix.com/apis/url/size/crop">cropping to areas of interest</a>, we’ve now added complete manual controls for <a href="https://docs.imgix.com/apis/url/focalpoint-crop">true focal point cropping and zooming</a>.</p><h3>Why Art Direction Matters</h3><p>Being able to crop and zoom into your image gives much greater flexibility than cropping alone, and being able to set the focal point to exactly where you want ensures that the focus of your final image is perfect. Let’s take a quick look at what focal point cropping enables for art direction.</p><p>Here’s a great editorial image from NASA of an astronaut floating in space:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*SXg4vykqsEWih1g-." /></figure><p>Assuming this is the main image for an article, you might want to have several other sizes to fit in various layouts, both based on the devices your site supports and different ways of displaying articles. A common set of sizes might have extremes like this:</p><ul><li>2048×900 hero unit at the top of an article for large desktops</li><li>100×100 thumbnail for search results or other lists of articles</li></ul><p>The differences in size and aspect ratio introduce some challenges. The astronaut is roughly in the middle, so if you just crop for the larger size, you lose a lot of the image’s power. The bit of earth you can see feels more like an afterthought:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*MdHSmnjOwhNopMAP." /></figure><p>However, by setting the focal point manually with imgix’s fp-x, fp-y and crop=focalpoint parameters, you can move the astronaut down and re-emphasize the isolation of space:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*b3N1NXGD5h9WHoKU." /></figure><p>A similar issue exists for the thumbnail. Just shrinking the original image (which is already square) would make the astronaut impossible to see:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/0*C_Z714A0MwLEUT_S." /></figure><p>To get a compelling image at such a small size, you’ll also need to zoom in, which you can do by adding the fp-z parameter (this example is zoomed in at 500%):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/100/0*IuD_H1Xa5MPbbxCv." /></figure><pre>?w=100&amp;h=100&amp;fit=crop&amp;crop=focalpoint&amp;fp-z=5&amp;fp-y=0.4</pre><h3>Locating Your Focal Point</h3><p>Being able to change the focal point is great, but do so effectively, you need a way to see where it is — that’s where our final focal point parameter, fp-debug=1, comes in. Add this to the URL string and you get a set of red crosshairs that allow you to adjust from the default center of the image (fp-xand fp-y of 0.5). Here’s our original astronaut hero crop with this turned on:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*dZGIkkbjaaSRkQmG." /></figure><pre>?w=2048&amp;h=900&amp;fit=crop&amp;crop=focalpoint&amp;fp-debug=1</pre><p>The revised hero image changed the fp-y value to 0.4 to put the astronaut in the middle.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*G5cdLe6i-q30s9nA." /></figure><h3>Where to Go from Here</h3><p>This is just a quick demonstration of the power of focal point cropping and how we’ve implemented it at imgix. For more detail, <a href="https://docs.imgix.com/tutorials/focal-point-cropping.html">check out our focal point tutorial</a> and the associated <a href="https://codepen.io/imgix/pen/26314fc5fd735a348dc6b622491f441f">CodePen demo</a>. (Note: This demo doesn’t work well in Safari due to the way Safari implements srcset.)</p><p>For more about the ins and outs of implementing responsive design with imgix, <a href="https://docs.imgix.com/tutorials/using-imgix-picture-element.html">check out our &lt;picture&gt; tutorial</a> and the <a href="https://imgix.com/imgix-js">imgix.js frontend library</a>, which can make generating comprehensive &lt;picture&gt; elements to handle all of your required image sizes much easier.</p><p><em>This article was originally published by Carol Gunby at </em><a href="http://blog.imgix.com/"><em>blog.imgix.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcac4d1608d3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Serving Images Faster with the Save-Data Client Hint]]></title>
            <link>https://medium.com/@imgix/serving-images-faster-with-the-save-data-client-hint-f9261451f7c1?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/f9261451f7c1</guid>
            <category><![CDATA[save-data]]></category>
            <category><![CDATA[imgix]]></category>
            <category><![CDATA[client-hint]]></category>
            <category><![CDATA[chrome]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 12 Sep 2017 21:19:02 GMT</pubDate>
            <atom:updated>2017-09-12T21:19:02.161Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*nEm4MWb5AQKUMSbZ." /></figure><p><a href="https://httpwg.org/http-extensions/client-hints.html">Client Hints</a> have greatly expanded the content negotiation and cache friendliness of HTTP headers, allowing clients to advertise what they prefer to receive in response to content requests. The new Save-Data Client Hint enables a better user experience for people in low-bandwidth situations, who can now choose a “data-saving” mode in some browsers to receive web pages in a more highly-optimized format.</p><p>Chrome 49 supports the Save-Data Client Hint, and because so much of the data savings comes from image compression, so does imgix. Here’s how you can use them together to deliver smaller websites to low-bandwidth users with a minimal effect on image quality, and without the need for JavaScript or cookie-based capability checks.</p><h3>Implementing Save-Data with imgix</h3><p>All browsers that support Save-Data will send the header, regardless of whether or not the Client Hint meta tag is present. In this way, Save-Data is a bit special compared to <a href="https://docs.imgix.com/tutorials/responsive-images-client-hints">other Client Hints</a>.</p><p>You will need to explicitly request that imgix serve a lower-bandwidth image in the presence of a Save-Data request from the browser by setting the chparameter:</p><pre><a href="https://assets.imgix.net/unsplash/unsplash009.jpg?ch=Save-Data">https://assets.imgix.net/unsplash/unsplash009.jpg?ch=Save-Data</a></pre><p>When the user is in data-saving mode, this will automatically apply the same optimizations as imgix’s <a href="https://blog.imgix.com/2016/03/11/auto-compress.html">auto=compress</a> parameter. It applies more aggressive image optimization than our defaults, resulting in approximately a 50% file size savings over our standard compression with a minimum of quality loss. (For browsers that don’t support Client Hints, using auto=compress is an option, but requires that the negotiation be handled in your code directly.)</p><p>Original (1200×800 pixels, 305kB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*XRrNKsomq6737T4w." /></figure><p>ch=Save-Data (1200×800 pixels, 119kB)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*HvGFUxueBYwuQto1." /></figure><h3>Notes</h3><ol><li>When any ch parameter is present, Client Hints information will override the respective imgix URL API parameters.</li><li>Chrome 49 requires that the <a href="https://support.google.com/chrome/answer/2392284?hl=en">Data Saver option</a> be turned on for the Save-Data Client Hint to work.</li></ol><h3>Further Reading</h3><ul><li>Google Developers, <a href="https://developers.google.com/web/updates/2016/02/save-data?hl=en">Delivering Fast and Light Applications with Save-Data</a></li><li><a href="https://httpwg.org/http-extensions/client-hints.html">HTTP Working Group: Client Hints</a></li><li><a href="https://docs.imgix.com/apis/url/format/ch">imgix ch parameter documentation</a></li><li><a href="https://www.youtube.com/watch?v=GNP-_ncY3ZA">Chrome 49 Announcement Video</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f9261451f7c1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Find and Fix Your Heaviest Images with Page Weight]]></title>
            <link>https://medium.com/@imgix/find-and-fix-your-heaviest-images-with-page-weight-962961476c67?source=rss-d44049439f2c------2</link>
            <guid isPermaLink="false">https://medium.com/p/962961476c67</guid>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[imgix]]></dc:creator>
            <pubDate>Tue, 29 Aug 2017 18:54:52 GMT</pubDate>
            <atom:updated>2017-08-29T18:55:21.520Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vNzeoWBrdbuOMnvzOSSaEQ.gif" /></figure><p>Page load speed continues to be a primary concern for websites. With increasing numbers of customers accessing sites on mobile connections, and markets expanding into areas with uneven broadband coverage, load times have a big impact on conversion.</p><p>But “speed” can be a nebulous measure. We recommend using page weight, or the combined file sizes of every element on a page, as a proxy. Unlike speed, it’s objective, measurable and actionable. Slow because of a heavy page? Find the heaviest elements and try to shrink them.</p><p>Images are often up to 70 percent of a page by weight. That means image optimization is usually an easy win. Yet it’s not always easy to know where to start. Last year, we launched <a href="https://pageweight.imgix.com/">Page Weight</a>, a tool designed to guide you to your worst-performing images quickly and provide straightforward optimization suggestions. Today, based on feedback from users, we’re launching an improved version that makes picking that low-hanging fruit even easier.</p><p>Enter your URL into <a href="https://pageweight.imgix.com/">Page Weight</a>, and imgix will prepare a custom report that points out where poorly-optimized images are adding unnecessary bulk and slowing your page down. The report shows what these images would look like with best-practice image processing applied to them through imgix, and shows you the potential page weight savings per image, starting with the worst offenders.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/880/0*IpfwAZh2CdOGaXm0." /></figure><p>There are many ways to evaluate page speed overall, but Page Weight’s focus on images gives developers a clear path toward improvement without a lot of additional analysis required. However, it can also complement other tools that measure speed more holistically. If those tools indicate that your images are a major issue, you can use Page Weight to look more granularly at how to optimize them.</p><p>Regardless of your reason for optimizing images, <a href="http://blog.chriszacharias.com/page-weight-matters">page weight matters</a>, and the free Page Weight tool is a great place to start figuring out your approach. Try it out and your site will be loading faster in no time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=962961476c67" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>