html - Sitecore : image size when using <img> in rich text -


i know it's possible when writing code ask sitecore image of specific height , width. if there 1 large/detailed image in sitecore, sitecore return resized image ( instead of using large image , showing in smaller ).

but need insert images rich text. if use <img src="somepath" height="100" width="100">, have same effect , sitecore fetch smaller version of image ( possibly in cache ). or send large image , use pure css show smaller image ?

in sitecore 8 if add media library image rich text field , set image height , width editor (see screenshot), sitecore generate image src this

<img src="/~/media/.....jpg?h=84&w=149" /> 

this means image resized server side sitecore before returning client browser.

enter image description here

but if edit html of rich text content manually , create image tag

<img src="/~/media/...jpg" width="84" height="149" />` 

sitecore not resize image on server side you.


Comments

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -