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
Tip
We suggest you read the Image Guide for maximum power!
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
- ITweakMedia
Tweak API for various media settings. Specifically meant for images and pictures.
Some methods such as PictureClass will only have an effect if used on Picture(...) methods.
- ITweakResize
WIP - ATM just the properties which are needed for the ImageService