Skip to content
This repository was archived by the owner on Jan 4, 2022. It is now read-only.

crop not working properly when using webp #24

Open
victorparrillamartin opened this issue Jul 24, 2019 · 0 comments
Open

crop not working properly when using webp #24

victorparrillamartin opened this issue Jul 24, 2019 · 0 comments

Comments

@victorparrillamartin
Copy link

I'm having some problems when trying to use the package and get a cropped image on webp format. This is the code I'm using:

<img src="@Url.GetCropCdnUrl(Umbraco.TypedMedia(6402), cropAlias: "small", width: 300, height: 200)" />

<img src="@Url.GetCropCdnUrl(Umbraco.TypedMedia(6402), cropAlias: "small", width: 300, height: 200, furtherOptions: "format=webp")" />

And this is the result:
jpeg_vs_webp

As you can see the first image is being cropped properly (300x200 px), but when trying to use webp on the furtherOptions the image is not being cropped as expected (300x168 px).

Could anyone shine some light on this? Thank you very much.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant