dgraph-io / ristretto

A high performance memory-bound Go cache
https://dgraph.io/blog/post/introducing-ristretto-high-perf-go-cache/
Apache License 2.0
5.52k stars 365 forks source link

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

Open KZ25T opened 3 months ago

KZ25T commented 3 months ago

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.

github-actions[bot] commented 1 month ago

This issue has been stale for 60 days and will be closed automatically in 7 days. Comment to keep it open.