Hi Roland,

A solution will be to get the 2 different image variations in the freemarker 
template and let your front-end code render the correctly image.
You can e.g. set the retina image on a data attribute in the freemarker 
template:

[code][#assign image = damfn.getAssetLink(content.image, "image")]
[#assign retinaImage = damfn.getAssetLink(content.image, "image-with-retina")]
 <img src="${image} data-retina-src="${retinaImage}">[/code]

There are lots of retina Javascript plugins/frameworks out there which can, 
bases on the client, render the correct image.
e.g.: 
[url]http://foundation.zurb.com/sites/docs/v/5.5.3/components/interchange.html[/url]
[url]http://bootbites.com/tutorials/how-make-your-bootstrap-site-retina-ready[/url]

-- 
Context is everything: 
http://forum.magnolia-cms.com/forum/thread.html?threadId=4881b7c4-b70e-4b10-baf5-4a9b3d23c11c


----------------------------------------------------------------
For list details, see: http://www.magnolia-cms.com/community/mailing-lists.html
Alternatively, use our forums: http://forum.magnolia-cms.com/
To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com>
----------------------------------------------------------------

Reply via email to