Adaptive images
Hi,
Just like to know how others should implement this in Orchard:
Every image on my website will have custom sizes available for e.g. retina, mobile etc. These should be adaptive images, so it would not be sufficient to have some resize functionality.
So what I came up with for now:
-
Extend the ImagePart with some extra fields that points to the alternative images. So I upload one image, and then this image should have 3 alternatives.
-
Just following a folder naming convention. So then I could add some code to the Image.cshtml that I can the same image inside the 'other folder' (e.g. ~Images/Retina or ~/Images/Large or ~Images/Mobile
Someone who thinks this can be easier or more 'solid'?