Tuesday, 22 April 2014

SDL Mobile : Contextual Image Delivery

So you already have your images for your PC site, but whilst creating your mobile site you soon realize that sending these full size images to mobile devices is far from ideal. You may do some client side adjustment to set height and width, and that may seem to work OK on a fast network, but what about real world situations? If you run your page through any web performance analysis tools you may find that your page weight is a little more than you wanted. Try running your page, or even your favourite mobile web site, through pagespeed, Chrome developer tools or IE developer tools and see what the page weight is and whether the images are optimised.

Now page weight can be attributed to various factors, but images do typically weigh in as the significant factor. As Guy Podjarny from Akamai succinctly puts:

"It all comes down to the fact that you're downloading a large amount of content and you're either hiding or shrinking it. It leads to mobile websites that look and interact like mobile websites but are over one megabyte or two megabytes in size."

Now "web performance is user experience" as Lara Swanson - Engineering Manager of Mobile Web at Etsy - points out:

"Users expect pages to load in two seconds, and after three seconds, up to 40% of users will abandon your site. Similar results have been noted by major sites like Amazon, who found that 100 milliseconds of additional page load time decreased sales by one percent, and Google, who lost 20% of revenue and traffic"

We've recently released the SDL Mobile Contextual Image Delivery module which allows you to easily resize images on the server side so that the client doesn't have to download the full image and resize on the client side. The interface is a simple rule based URL interface that takes images at given locations, transforms them on the fly and returns an optimised image.

For example ... imagine you have an image at http://mysite/images/my.jpg and you want fit this image into a 100x100 space on your page.

You can drop the optimised image on your page with:

<img src="http://mytransfomer/t/scale/100x100/mysite/images/my.jpg"/>

where http://mytransfomer/t is where you have deployed the Contextual Image Delivery module. Both .NET and Java deployments supported BTW.

This transformation is done once and cached so that subsequent requests for the same optimised image from different users is fast.

In a nutshell, that's SDL's Contextual Image Delivery a.k.a CID.

I'll blog soon about the other features of this module, including :-

  • Using context properties to set width and height for you based on the connecting device - the Context Engine already knows the client's screen size so you can make these image optimisation rules dynamic.
  • Whitelisting - to restrict which URLs you wish to allow.
  • Image source definitions - to allow a given logical URL to point to different physical locations in different environments AND to point to images on the file system.
  • Other rules such as trim, scale and format change.
  • JavaScript library to optimise image URLs client size - perhaps you want to handle screen rotation, window resize by the user.
  • Template Building Block to create dynamic CID URLs in Tridion component presentations.


  1. Mobile devices and online search is a constantly flourishing segment of the market. A search made from a mobile device has got its own rules and is different from the conventional search rules.wolff of canada home

  2. This is my #1 Recommendation for a reputable website to run a Mobile Number Tracker [bestmobilenumbertracker.com/dnd-check] easily and at the best price on the internet.

  3. Great visuals aside, the mobile model and the restrictions it brings is a useful way for you to really consider what the core content and messages are that your business or expertise want to communicate to the consumer. Affordable web designers mobile friendly

  4. Domain hosting wiki: for bloggers, business owners and webmasters looking for starting, maintaining and knowing more about domains and hosting

  5. This is genuinely an awesome read for me. I have bookmarked it and I am anticipating perusing new articles. Keep doing awesome!
    animation logo

  6. Moreover, flash designs might also be incorporated within the site to make it even more alluring to the clients. Edknt Media

  7. ARTECH Experts are Creating Your Professional Blog Website, Agency & Business Website & E-Commerce Website. Beautiful Stunning Website Web Development

  8. Through the use of the latest and greatest technology, a creative web design company will use Flash, jQuery, and HTML5 to visually engage the user; however this is where the pitfalls of a creative web design can come into play.

  9. Want to connect to a great website design company asap. I am running a software house and need to create its website immediately. website design company

  10. I wanted to compose you that little bit of note to give thanks yet again with the incredible strategies you have provided on this page. It has been so remarkably generous with people like you to supply extensively exactly what a number of us would’ve offered for sale for an e-book to make some profit on their own, principally given that you might well have done it if you ever desired. Those thoughts as well worked to become a great way to understand that many people have a similar eagerness like my own to grasp more with regards to this condition. I am certain there are numerous more pleasurable opportunities up front for those who scan through your blog. web hosting companies reviews

  11. In simple terms you can say that there are few important factors that leaf the way for making a website more effective and beautiful. http://hmmedia.uk/Blog/website-traffic/

  12. An expert ecommerce website design service provider can quickly build and test your site along with all the features of an ecommerce website design requirements. ecommerce design company

  13. Extremely intriguing online journal. A lot of web journals I see nowadays don't generally give anything that I'm keen on, however I'm most definitely inspired by this one. Recently felt that I would post and let you know. front end development

  14. One present why galore businesses opt for postcards is because they are overmuch cheaper to be prefab and this can forbear a lot of expenses on the lengthened run.  bitly

  15. Im no expert, but I believe you just made an excellent point. You certainly fully understand what youre speaking about, and I can truly get behind that.
    software development company in delhi