New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image transparency replaced with checkerboard on zoom #8745
Comments
Apparently this is only the case when Pan & Zoom is disabled. Turning Pan & Zoom to enabled causes the transparency to be respected. |
Hello @zulip/server-misc members, this issue was labeled with the area: uploads label, so you may want to check it out! |
@zulipbot claim |
@shidarin what should be the expected behaviour? |
That was my expected behavior- display the image over the background color while respecting transparency. I initially thought that the checkerboard was a concious design decision, but it goes away when you click the pan & zoom button. That makes me think it's a bug. |
so what change should be done? |
I would determine what's causing the checkerboard to appear, then adjust that to be the background color instead. |
Discussed this a bit with @timabbott in #issues: Some pertinent bits:
So, anyone have any thoughts on checkboard vs the blue background? |
@zulipbot abandon |
My concern here would be in cases where a transparent png is made up of mainly blue color. The checkerboard design helps in eliminating most of such cases due to its frequent and consistent changes, so worst case, it is like looking at an image through a net, but the image is still visible. |
I think the current thinking is we will eventually want to make the background controllable by an option. |
@zulipbot claim |
Hello @Anupam-dagar, you have been unassigned from this issue because you have not updated this issue or any referenced pull requests for over 14 days. You can reclaim this issue or claim any other issue by commenting Thanks for your contributions, and hope to see you again soon! |
Posted an update for the wrong issue. Ignore this. |
A PNG image with transparency is respected on the preview image within the chat stream:
But not in the zoomed view:
Where the transparency is replaced with a checkerboard.
Because of the checkerboard background, I figure there's a chance this was already discussed, and is intentional behavior. If so, this issue can be closed.
The text was updated successfully, but these errors were encountered: