Skip to content
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

[BUG]: <Title>Cannot correctly view a transparent png file, which is very long #379

Open
KZ25T opened this issue May 8, 2024 · 0 comments
Labels
kind/bug Something is broken.

Comments

@KZ25T
Copy link

KZ25T commented May 8, 2024

What version of Ristretto are you using?

0.13.1

What version of Go are you using?

go1.22.2 linux/amd64

Have you tried reproducing the issue with the latest release?

Yes

What is the hardware spec (RAM, CPU, OS)?

RAM: 32GB
CPU; intel core i7-1165G
OS: kali GNU/Linux (derived from debian), amd64

What steps will reproduce the bug?

when I try to view a RGBA png file, which is very long (46585*72) and most pixels is transparent, it will show all pixels in transparent, no matter how I enarge it.

Expected behavior and actual result.

Expected: I can view it correctly on visual studio code (after I enlarge it):
image
Actual: I can't view it correctly on ristretto:
image
and the image is:

img_a

and the base64 encode of the image (to avoid compressed and converted):

image_base64.txt

md5sum of the image(not base64 file): 4d1dcf96d59036c5e8ead35ce91187a5

Additional information

Please forgive me for my poor English expression for my native language is not English. And I'll be apologise if any of my offensive behavior occured. Thanks for viewing my issue.

@KZ25T KZ25T added the kind/bug Something is broken. label May 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something is broken.
Projects
None yet
Development

No branches or pull requests

1 participant