Define width only on `GetCropUrl`
# help-with-umbraco
g
I would like to create an image element that would use different source for different viewports. I wanted to define ImageCropper with Tailwinds default breakpoints. But the problem is, that I need to define the height also. I can ommit this parameter if I use
GetCropUrl
method on a normal media property. Is there a way to define width only?
h
@Model.Image?.GetCropUrl(width:480) should work