danielhok
10/22/2023, 11:56 AMcsharp
<img src="@Model.ArticleHeroImage?.MediaUrl()" style="width: 900px" />
<img src="@Model.ArticleHeroImage.LocalCrops" />
<slimsy-picture media-item="Url.GetCropUrl(Model.ArticleHeroImage?.MediaUrl()" css-class="mx-auto" render-lqip="true" alt-text="Attention, Zombie articles incoming" width="1280" height="720" decorative="false"></slimsy-picture>
To be fair I must say I don't understand slimsy to 100% yet. As far as I know it takes a image for example 1920x1080 and if I watch my website on a mobile devices the image gets loaded with worse image quality because on the phone I don't need the full blown up image.
I googled quite a lot with umbraco cms but I couldn't really find a good tutorial.
I know there is focal point setting on node tree basis or globally...
Is there some article or a person which can me tell in detail how cropping, focal points and/or slimsy work together?
At the moment I have on my website only very big and not really optimized images and I would like to change thath (https://danobe.dev)
I would glad if someone could bring on some light to this mysterium for me.
How do cropping, focal point and slimsy picture play together? In which situation should I use what?
The end goal: Make images on my website more beautyful and better optimized for different resolutions.
Would be glad if someone could hint me into the right direction.
Kind regards,
Daniel
https://cdn.discordapp.com/attachments/1165619753218494524/1165619753767936091/Bildschirmfoto_2023-10-22_um_13.50.22.png?ex=654782fd&is=65350dfd&hm=98369f2bdf8bee5cc2077a3c3d3601b692931764584cc8ea197758450ba1e3c2&Ambert
10/22/2023, 6:07 PMAmbert
10/22/2023, 6:07 PMUrl.GetCropUrl(Model.ArticleHeroImage?.MediaUrl()
Ambert
10/22/2023, 6:08 PMAmbert
10/22/2023, 6:08 PMcsharp
<slimsy-picture media-item="Url.GetCropUrl(Model.ArticleHeroImage)" css-class="mx-auto" render-lqip="true" alt-text="Attention, Zombie articles incoming" width="1280" height="720" decorative="false"></slimsy-picture>
danielhok
10/22/2023, 6:25 PMdanielhok
10/22/2023, 8:25 PMcsharp
<img data-src="@Model.ArticleHeroImage.GetCropUrl("smallSqaure")" class="lazyload w-72 h-72"/>
This solved the issue, but know I have to find a way how to cleanly implement all images with a good crop so that it looks good on all devices... I'll keep writing here if I run into even more issues .... ! 🙂