Skip to content
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

Image.Fit broken on 0.56 / wrong Width & Height #6120

Closed
gj52 opened this issue Jul 27, 2019 · 3 comments

Comments

@gj52
Copy link

commented Jul 27, 2019

image.fit does not change size

{{ $.Scratch.Set "image" (.Fit "370x246") }}{{ $image := $.Scratch.Get "image" }}
<img src={{ $image.RelPermalink | relURL}} width={{ $image.Width }} height={{ $image.Height }} >

The new image has the right size but $image.Width gives the original value 1480

@gj52 gj52 closed this Jul 27, 2019

@gj52 gj52 reopened this Jul 27, 2019

@gj52

This comment has been minimized.

Copy link
Author

commented Jul 27, 2019

Error confirmed, switching from 0.55.6 to 0.56
Lost version out of view - > reopened

@bep bep added the Bug label Jul 27, 2019

@bep bep self-assigned this Jul 27, 2019

@bep bep added this to the v0.56.1 milestone Jul 27, 2019

@bep

This comment has been minimized.

Copy link
Member

commented Jul 27, 2019

A, bugger. I disovered this myself and applied a fix which must have gotten lost somehow ...

@bep

This comment has been minimized.

Copy link
Member

commented Jul 27, 2019

OK, I see where my confusion comes from. It works when you generated it the first time, but not later when read from cache.

bep added a commit to gohugoio/hugoDocs that referenced this issue Jul 27, 2019

bep added a commit to bep/hugo that referenced this issue Jul 28, 2019

@bep bep closed this in #6123 Jul 28, 2019

bep added a commit that referenced this issue Jul 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.