Wow, that is a lot of complicated code. if i where you, i would use a div tag and set a class / style on that to contain the image, and set it's width and height like that. and then inside the div, set the image to 100% width and height auto that way it will scale all by itself. This is not an umbraco thing but more like a css Html thing
Responsive images in Umbraco
I have tried to follow a guide found here: http://www.logikfabrik.se/blog/responsive-images-in-umbraco/
To get rid of the annoying style attribute that the TinyMCE adds to the img tag. However, it do not work.
Any ideas? I want Umbraco to resize the image but not adding any style elements. It is a 7.2.X site.
Wow, that is a lot of complicated code. if i where you, i would use a div tag and set a class / style on that to contain the image, and set it's width and height like that. and then inside the div, set the image to 100% width and height auto that way it will scale all by itself. This is not an umbraco thing but more like a css Html thing
Hi Henning,
Try to use - https://our.umbraco.org/projects/website-utilities/slimsy
Great package for Umbraco responsive images.
We used it.
Thanks,
Alex
That URL is redirected to http://www.logikfabrik.se/blog/responsive-images-in-umbraco/. Is Slimcy still available?
Pretty sure it's not - have a look at lazysizes (https://github.com/aFarkas/lazysizes), it's a sweet piece of kit.
is working on a reply...