Skip to content

Compress images on the client-side before uploading #7797

@ruibaby

Description

@ruibaby

Prerequisites

  • I have searched for related issues in the Issues list.
  • This is a feature related to Halo. If it is not an issue with the project itself, it is recommended to submit it in the Discussions.
  • If it is a feature suggestion for plugins and themes, please submit it in the respective plugin and theme repositories.

Your current Halo version

2.21.9

Describe this feature

It would be great to support image compression before uploading attachments. This would improve loading speeds and also reduce the server load when generating thumbnails.

There are many excellent and effective libraries for this that run in the browser, such as compressor.js. Therefore, we could prioritize a client-side implementation to better reduce the burden on the server, since image processing is often a resource-intensive task.

/area ui
/kind feature
/milestone 2.22.x

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/uiIssues or PRs related to the Halo UIkind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions