-
Notifications
You must be signed in to change notification settings - Fork 273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with cropping in 0.4.7? #238
Comments
On 0.4.5, my image URL's in dev look like: On 0.4.7, they change to : |
It's something to do with the "sizes" attribute, but I haven't been able to figure it out yet. |
Well, I'm still not sure of the issue, but I think it's got to do with the height property on srcset, for some reason they're all set to "1333" which is the original height.
|
Hi @tusamni. Can you please try 0.4.8? |
Hey @pi0 thanks. Still having issues. If I include the "sizes" attribute on an image it's giving me a weird crop. In the attached image below, I have the "sizes" attribute on the first image, but the other two don't have it and show correctly. The generated code for that image is:
And my code looks like:
|
I'm no expert at this, but it looks like it's the "?s=" attribute on the image URLs. The width is set correctly, but the height is the original height. |
So I can provide a little more insight here. I have two identical images, just slightly different sizes: one is 1000x667 and one is 2000x1333. My sizes option looks like this:
The 1000px image crops fine, the 2000px one is far too tall. 1000px: dodge-demon-rear-wheel-Custom.jpg?f=webp&_cHeight=512&s=768_667 |
I believe this has been resolved (see 682b674). If not, do let me know and I'll happily reopen |
I was on 0.4.5 and cropping seems to be fine, however on 0.4.7 suddenly the crops are all way off. I rolled back to 0.4.5 and confirmed that the bug is gone.
I'm using static IPX.
The text was updated successfully, but these errors were encountered: