Skip to content

[stable35] perf(preview): only autorotate with Imaginary when needed - #65485

Merged
CarlSchwan merged 1 commit into
stable35from
backport/65148/stable35
Oct 20, 2026
Merged

CarlSchwan merged 1 commit into
stable35from
backport/65148/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Oct 14, 2026

Copy link
Copy Markdown

Backport of PR #65148

Every operation of an Imaginary pipeline decodes and encodes the full
image again, so the autorotate operation made each JPEG preview about
three times slower: 780ms instead of 286ms for the max preview of a
12 MP photo, 258ms instead of 80ms for a 256px one. Read the EXIF
orientation from the start of the file and only add the operation when
the image needs to be rotated.

Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
@CarlSchwan
CarlSchwan merged commit c0aad79 into stable35 Oct 20, 2026
197 of 201 checks passed
@CarlSchwan
CarlSchwan deleted the backport/65148/stable35 branch October 20, 2026 13:13
@github-actions

Copy link
Copy Markdown
Contributor

This pull request has been automatically locked because it has been closed for more than 7 days. As we do not monitor merged or closed pull requests, we are locking this pull request to prevent further comments from getting lost in the noise.
If you discovered any issues with this pull request, please open a new issue instead. In case you want to discuss this pull request or have further questions, please use our forum: https://help.nextcloud.com

@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Oct 29, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants