Image viewer: an image with transparency opens as an empty (transparent) preview #609

Closed
opened 2026-11-15 08:49:51 +00:00 by charles · 4 comments
Owner

Reported by Rhadamanthus in #flaxative-bug-reports (https://fluxer.forked.io/channels/1554245914976059392/1571446632598208512). Platform: Windows.

Report. "the preview was transparent for this image. The backdrop still shows (darkened app)"

Steps. Click an image attachment in a channel whose pixels are (partly) transparent. The viewer's dark backdrop appears but the image itself is not drawn.

Notes. Cause not investigated. Things to check: whether the viewer's full-size image failed to load or decode (and the failure is shown as nothing instead of an error/retry), and whether an image with an alpha channel is drawn without a backing, so it reads as empty over the dark backdrop.

Screenshot.

viewer-transparent.png

**Reported by** Rhadamanthus in #flaxative-bug-reports (https://fluxer.forked.io/channels/1554245914976059392/1571446632598208512). Platform: Windows. **Report.** "the preview was transparent for this image. The backdrop still shows (darkened app)" **Steps.** Click an image attachment in a channel whose pixels are (partly) transparent. The viewer's dark backdrop appears but the image itself is not drawn. **Notes.** Cause not investigated. Things to check: whether the viewer's full-size image failed to load or decode (and the failure is shown as nothing instead of an error/retry), and whether an image with an alpha channel is drawn without a backing, so it reads as empty over the dark backdrop. **Screenshot.** ![viewer-transparent.png](https://git.forked.io/attachments/bc0588e0-fb1d-4041-a2c9-57f129e4d6ac)
Author
Owner

Second screenshot from the reporter (2026-11-15), described here rather than attached because it shows the whole window with member names:

  • The viewer is open (title image.png 1 / 1 top left, the toolbar with close/open/copy-link/download/rotate/zoom at the bottom left).
  • Where the image should be there is a large rounded rectangle, slightly lighter than the backdrop and translucent (the channel behind shows through it), spanning almost the full window width and about two thirds of its height. No pixels of the image are drawn in it.
  • The image that was clicked appears to be the wide dark table image visible behind it in the channel (a dark-themed screenshot, much wider than tall), posted under a link embed.
  • The message hover toolbar is drawn on top of the viewer (that is #610).
    So the viewer lays out a box of the right shape but draws nothing in it: look at the full-size load failing silently (placeholder box stays), or the image being drawn with zero alpha / as a not-yet-uploaded texture; this is on Windows.
**Second screenshot from the reporter (2026-11-15), described here rather than attached because it shows the whole window with member names:** - The viewer is open (title `image.png 1 / 1` top left, the toolbar with close/open/copy-link/download/rotate/zoom at the bottom left). - Where the image should be there is a large rounded rectangle, slightly lighter than the backdrop and translucent (the channel behind shows through it), spanning almost the full window width and about two thirds of its height. No pixels of the image are drawn in it. - The image that was clicked appears to be the wide dark table image visible behind it in the channel (a dark-themed screenshot, much wider than tall), posted under a link embed. - The message hover toolbar is drawn on top of the viewer (that is #610). So the viewer lays out a box of the right shape but draws nothing in it: look at the full-size load failing silently (placeholder box stays), or the image being drawn with zero alpha / as a not-yet-uploaded texture; this is on Windows.
Author
Owner

PR #626. Both screenshots show the viewer's loading placeholder (the 6 % white rounded box). That box is only drawn while the full-size picture is not ready, so the load failed or never finished. A drawn picture never looks like this. Failed loads used to be dropped silently. Now the viewer shows "This image could not be loaded." and the app log gets a image failed to load warning with the host and the error. On Linux, transparent RGBA and tRNS PNGs, a large PNG, the proxy's WebPs of them, and a wide dark picture with a transparent background all decode and draw correctly (tests added). The Windows cause is not reproduced yet. The new log line should name it: please attach the log after reproducing.

PR #626. Both screenshots show the viewer's loading placeholder (the 6 % white rounded box). That box is only drawn while the full-size picture is not ready, so the load failed or never finished. A drawn picture never looks like this. Failed loads used to be dropped silently. Now the viewer shows "This image could not be loaded." and the app log gets a `image failed to load` warning with the host and the error. On Linux, transparent RGBA and tRNS PNGs, a large PNG, the proxy's WebPs of them, and a wide dark picture with a transparent background all decode and draw correctly (tests added). The Windows cause is not reproduced yet. The new log line should name it: please attach the log after reproducing.
Author
Owner

The reporter wrote in the forum thread on 2026-11-18: "This seems to be working now. I don't know why but it doesn't repro anymore". No fix was made for this issue specifically; left open until the transparent-image case is checked.

The reporter wrote in the forum thread on 2026-11-18: "This seems to be working now. I don't know why but it doesn't repro anymore". No fix was made for this issue specifically; left open until the transparent-image case is checked.
Author
Owner

Closed at Charles's request (forum, 2026-11-19): the reporter says it no longer reproduces. No change was made for it on purpose; reopen if the transparent preview comes back.

Closed at Charles's request (forum, 2026-11-19): the reporter says it no longer reproduces. No change was made for it on purpose; reopen if the transparent preview comes back.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#609
No description provided.