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

Image thumbnail is darker than the original file #100905

Open
matheusmdx opened this issue Dec 29, 2024 · 4 comments
Open

Image thumbnail is darker than the original file #100905

matheusmdx opened this issue Dec 29, 2024 · 4 comments

Comments

@matheusmdx
Copy link
Contributor

Tested versions

  • Reproducible in all 4.x versions, also tested in 3.6.

System information

Godot v4.4.dev (75ce426) - Windows 10 (build 19045) - Multi-window, 2 monitors - Vulkan (Forward+) - dedicated AMD Radeon RX 580 2048SP (Advanced Micro Devices, Inc.; 31.0.21921.1000) - AMD Ryzen 5 3600 6-Core Processor (12 threads)

Issue description

As can be seen in the image bottom, Godot generates a thumbnail much more darker than the original file, only the thumbnails seems to be affected. I didn't noticed this behavior in other .webp files.

Image

Steps to reproduce

Open the mrp or download the image and import in your project.

Minimal reproduction project (MRP)

test_thumbnail.zip

image.zip

@Saulo-de-Souza
Copy link

If this helps programmers, I opened the project in Godot 4.3 stable and 4.4 dev 7 and it's normal for me. It appears to be something related to your processor or video card.
The settings tested on my PC:
NVIDIA-NVIDIA GeForce RTX 3070
Intel(R) Core(TM) i3-10100 CPU @ 3.60 GHz 3.60 GHz
Windows 11 64-bit operating system.

Image
Image

@Mickeon
Copy link
Contributor

Mickeon commented Dec 29, 2024

This is a convenient coincidence that happens because of nearest-neighbor or bilinear filtering. You can achieve the same effect by carefully shrinking the image on your editor of choice:
Image Image

@matheusmdx
Copy link
Contributor Author

Indeed in some level of shriking this can happen but also as @Saulo-de-Souza show is possible to work as expected. IMO this should be treated a bug, ofc far from be something problematic, but still a bug.

@Mickeon
Copy link
Contributor

Mickeon commented Dec 30, 2024

It's not a bug. In the screenshots provided, the thumbnails are just the right size where this oddity does not occur. The nearest-neighbor filtering is still the same between both Godot versions.
Again, you can achieve the same effect by shrinking this image using the nearest-neighbor filter. The original image contains many dark pixels which, on specific sizes, are picked to be displayed when the image is shrunk.

@Mickeon Mickeon changed the title Image thumbnail is darker than the orignal file Image thumbnail is darker than the original file Dec 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants