Skip to content

Thumbnail dimensions may be generated incorrectly #7801

@ruibaby

Description

@ruibaby

Prerequisites

  • I have searched for related issues in the issues list.
  • This is an issue with the Halo project itself. If it is not an issue with the project itself(For example: Installation and deployment issues.), it is recommended to submit it in the Discussions.
  • I have tried disabling all plugins to rule out plugins as the cause of the problem.
  • If it is an issue with plugins and themes, please submit it in the respective plugin and theme repositories.

System information

  • External url: http://127.0.0.1:8090
  • Start time: 2025-10-12 15:16
  • Version: 2.22.0-SNAPSHOT
  • Build time: 2025-10-12 15:16
  • Git Commit: 84eefe3
  • Java: OpenJDK Runtime Environment / 21.0.6+7-LTS
  • Database: PostgreSQL / 15.2 (Debian 15.2-1.pgdg110+1)
  • Operating system: Mac OS X / 26.0
  • Activated theme: Ocean 1.5.1
  • Enabled plugins:

What is the project operation method?

Docker

What happened?

After the recent refactoring of attachment thumbnails, I’ve noticed that some images are generated with unexpected dimensions.

For example:

Image

It’s worth noting that refreshing the page can sometimes result in the correct dimensions being returned. This suggests that the issue might be related to improper cache handling.

Reproduce Steps

No response

Relevant log output

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/coreIssues or PRs related to the Halo Corekind/bugCategorizes issue or PR as related to a bug.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions