Skip to content

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

Closed

Description

@gj52

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

Activity

  1. reopened this on Jul 27, 2019
  2. gj52 commented on Jul 27, 2019

    @gj52
    Author

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

  3. self-assigned this
    on Jul 27, 2019
  4. added this to the v0.56.1 milestone on Jul 27, 2019
  5. bep commented on Jul 27, 2019

    @bep
    Member

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

  6. bep commented on Jul 27, 2019

    @bep
    Member

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

  7. added a commit that references this issue on Jul 28, 2019
    93d02aa
  8. github-actions commented on Feb 17, 2022

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  9. locked as resolved and limited conversation to collaborators on Feb 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions