Say how a picture is changed to fit the server (#359) #391

Merged
littlefox merged 1 commit from issue-359-say-changes into main 2026-10-28 14:23:06 +00:00
Owner

Closes #359

Per the user's comment on #359 (D-072): instead of chasing the black square, say how a picture is changed to fit a lyskomd text. The composer, the chat's reply field and the profile editor list, under the picture: the original's size against the limit, pixels before and after, format and JPEG quality, transparent parts turned white, and a lost animation. A picture that goes as it is says nothing.

Verified: unit tests for GIF frame counting and APNG/WebP animation; e2e gif.spec (new test with a half-transparent 2000 px PNG, plus the too-big GIF's list), compose, profile and thread-chat specs, 51/51 in desktop, Android and iPhone profiles; lint three ways.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8

Closes #359 Per the user's comment on #359 (D-072): instead of chasing the black square, say how a picture is changed to fit a lyskomd text. The composer, the chat's reply field and the profile editor list, under the picture: the original's size against the limit, pixels before and after, format and JPEG quality, transparent parts turned white, and a lost animation. A picture that goes as it is says nothing. Verified: unit tests for GIF frame counting and APNG/WebP animation; e2e `gif.spec` (new test with a half-transparent 2000 px PNG, plus the too-big GIF's list), compose, profile and thread-chat specs, 51/51 in desktop, Android and iPhone profiles; lint three ways. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
Say how a picture is changed to fit the server
All checks were successful
perf / perf (pull_request) Has been skipped
ci / plan (push) Successful in 1m52s
ci / check (push) Successful in 9m22s
ci / desktop (push) Successful in 16m16s
ci / e2e (android) (push) Successful in 20m15s
ci / e2e (iphone) (push) Successful in 20m20s
ci / e2e (desktop) (push) Successful in 21m51s
bf5511ca67
The user would rather know how a picture is altered than chase #359's
black square further (D-072). When the composer, the chat's reply field
or the profile editor redraws a picture, it now lists what changed: the
original's size against the server's limit, the pixels before and after,
the format and JPEG quality, transparent parts turned white, and a lost
animation (GIF frames counted, APNG and animated WebP recognised). A
picture that goes as it is says nothing.

Refs #359

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XJW2ocwLunyaLiUwCBHEP8
littlefox referenced this pull request from a commit 2026-10-28 15:15:38 +00:00
Sign in to join this conversation.
No description provided.