Skip to content

Consider bumping mainImageVersionNumber #15266

Closed

Description

@jmooring

Unless site owners flush their image cache, they will not see the result of these fixes:

9e7c978 resources/images: Preserve the source palette for geometric filter chains
7785668 resources/images: Fix filters on transparent colors and paletted images

Argument against doing this: I suspect very few sites are affected by the underlying issues.

I don't have a strong opinion either way.

Activity

  1. jmooring commented on Sep 1, 2026

    @jmooring
    MemberAuthor

    The example sites I used seem to affect PNG only. So I think we could limit the change to formatVersionNumbers.

  2. self-assigned this
    on Sep 1, 2026
  3. jmooring commented on Sep 1, 2026

    @jmooring
    MemberAuthor

    I just tested the two approaches described above: neither one is having the desired result.

  4. bep commented on Sep 1, 2026

    @bep
    Member

    9e7c978 resources/images: Preserve the source palette for geometric filter chains

    Note that the above commit is reverting part of the side effects of 7785668 -- as in, it will work as in previous Hugo versions for PNG resizing using images.Process (and AutoOrient) only.

  5. jmooring commented on Sep 1, 2026

    @jmooring
    MemberAuthor

    Claude commented... "The pre-existing bug is that mainImageVersionNumber and formatVersionNumbers are silently ignored for filter operations."

  6. bep commented on Sep 1, 2026

    @bep
    Member

    I think Claude refer to an old issue, but I will check.

  7. added a commit that references this issue on Sep 1, 2026
    e238b0f
  8. added a commit that references this issue on Sep 1, 2026
    d19e0a4
  9. github-actions commented on Sep 23, 2026

    @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.

  10. locked as resolved and limited conversation to collaborators on Sep 23, 2026
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

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions