TagStudio icon indicating copy to clipboard operation
TagStudio copied to clipboard

[BUG] Blank background is sometimes black and sometimes white

Open DeLoR1AnEc opened this issue 1 year ago • 7 comments

image

DeLoR1AnEc avatar May 15 '24 10:05 DeLoR1AnEc

can you please provide any of the original images with each background color?

yedpodtrzitko avatar May 15 '24 12:05 yedpodtrzitko

image

image

All images are png files with transparent background

DeLoR1AnEc avatar May 15 '24 17:05 DeLoR1AnEc

All images are png files with transparent background

We mean the original files themselves that are in your library, not just screenshots

CyanVoxel avatar May 15 '24 19:05 CyanVoxel

I noticed that you were likely using default Minecraft assets, although I can't guarantee that I'm looking at the same exact files on my machine. Nevertheless when viewing the respective assets on my machine I don't encounter the same bug with these files: image

With that being said though, I did fine the effect on a few of them: image

I've found that when I open the affected images (in this case with Affinity Photo) and resave them with no changes, the issue disappears. This leads me to believe that there is an issue with Pillow reading the alpha channel data from the compressed PNGs. image

CyanVoxel avatar May 15 '24 19:05 CyanVoxel

That's funny, image I'm getting a gif, transparent background, displaying as red. Also the preview seems to have the same red color that appears as a thin border. image And after opening it in aseprite and re-saving it, it now displays the thumbnail background as black, and the same thin border on the preview, same black color.

Gawidev avatar May 15 '24 20:05 Gawidev

Interesting, so I guess it affects more than PNGs. @Gawidev could you send me the original file of this GIF if you don't mind?

CyanVoxel avatar May 15 '24 20:05 CyanVoxel

Sorry, my bad. But yes, these indeed are minecraft default assets.

DeLoR1AnEc avatar May 15 '24 21:05 DeLoR1AnEc