Namespace ToSic.Sxc.Images
Images are super-important in websites - and we want to make sure that they are
- perfect by default
- consistently resized to the perfect size
- optimized for all kinds of browsers and scenarios
Classes
- Recipe
A recipe contains instructions how to generate tags etc. which can contain multiple resized images
Interfaces
- IResizeSettings
Settings how to resize an image for the
src
orsrcset
attributes.It's read only, to create it, use the IImageService
- IResponsiveImage
A object which contains everything to create HTML for responsive
img
tags with optimalsrcset
offering all the sizes you may need.You can simply add this object to the source, like
@image
to render the image - which is the same as@image.ImgTag
- IResponsivePicture
A object which contains everything to create HTML for responsive
picture
tags with optimalsrcset
offering all the sizes you may need