Skip to content

[stable35] fix(editor): save a JPEG with an uppercase extension as a JPEG - #3450

Merged
skjnldsv merged 2 commits into
stable35from
fix/image-editor-uppercase-extension-stable35
Oct 20, 2026
Merged

skjnldsv merged 2 commits into
stable35from
fix/image-editor-uppercase-extension-stable35

Conversation

@skjnldsv

Copy link
Copy Markdown
Member

The image editor hands back image/JPG for ABC1234.JPG. Our jpg → jpeg replacement was case sensitive, and canvas.toBlob silently falls back to PNG for a type it doesn't take, so PNG data was written into the .JPG file.

Fixes #3424, taken over from #3429 by @aniruddh18122006-cyber (co-author on the commit). I left out the extension lowercasing: it renamed ABC1234.JPG to ABC1234.jpg on save, so the original was no longer overwritten.

The e2e test checks the uploaded bytes are a JPEG for .JPG and .JPEG. Not run locally.

👾 This pull request was assisted by Claude Code, commits carry an Assisted-by trailer.

@skjnldsv skjnldsv added bug Something isn't working 3. to review Waiting for reviews labels Oct 19, 2026
@skjnldsv skjnldsv self-assigned this Oct 19, 2026
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

@nextcloud-command
nextcloud-command force-pushed the fix/image-editor-uppercase-extension-stable35 branch from 81e15f8 to 4ed5daf Compare October 20, 2026 06:52
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

@nextcloud-command
nextcloud-command force-pushed the fix/image-editor-uppercase-extension-stable35 branch from 4ed5daf to c6c543b Compare October 20, 2026 07:58
@skjnldsv
skjnldsv enabled auto-merge October 20, 2026 08:04
@skjnldsv

Copy link
Copy Markdown
Member Author

/compile rebase

@skjnldsv
skjnldsv force-pushed the fix/image-editor-uppercase-extension-stable35 branch from c6c543b to b91c963 Compare October 20, 2026 08:16
skjnldsv and others added 2 commits October 20, 2026 10:28
The image editor hands back image/JPG for ABC1234.JPG. The jpg to jpeg
replacement was case sensitive, and canvas.toBlob silently falls back
to PNG for a type it doesn't take, so PNG data was written into the
.JPG file.

Fixes #3424

Co-authored-by: Aniruddh Singh <aniruddh18122006@gmail.com>
Assisted-by: ClaudeCode:claude-opus-5-5
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv force-pushed the fix/image-editor-uppercase-extension-stable35 branch from b91c963 to 5fd5fd7 Compare October 20, 2026 08:28
@skjnldsv
skjnldsv disabled auto-merge October 20, 2026 08:29
@skjnldsv
skjnldsv merged commit 5a9731a into stable35 Oct 20, 2026
17 checks passed
@skjnldsv
skjnldsv deleted the fix/image-editor-uppercase-extension-stable35 branch October 20, 2026 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant