ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Sacking/layering behavior suddenly occurs

Open CryingNova opened this issue 1 year ago • 3 comments

System information

  • Windows OS version: Windows 11 Pro 10.0.22631
  • ImageGlass version: 9.1.6.14
  • ImageGlass release: Store / Classic? Store

To Reproduce

Steps to reproduce the behavior:

  1. Open an image within a folder of other images
  2. Scroll or click through the images
  3. Be met with an odd image stacking/layering behavior

Actual behavior

I am pixel artist, so I work with many tiny individual files every day, and a significant portion of them having transparency. I've been using this program for many, many months now and only suddenly had this issue. I've noticed that whenever I'm browsing images, the images stack/layer on each other after I've scrolled/clicked through a few? But it has no pattern. Very random and inconsistent. Not all images are affected. It seems to somewhat layer the images from around the image currently focused on the screen. I have tried repairing and reinstalling and both haven't made a difference.

Expected behavior

I expect to be able to view the singular image that I click on without having several other images attempting to layer itself in the background or on top of it

Screenshots / Video / Sample image file

The image shows that the current image clicked on and focused on screen also has several other images stacked on top of it in the main viewing window. 5615

CryingNova avatar Jun 15 '24 14:06 CryingNova

I'm seeing the same issue on version 9.1.6.14 Uninstalled 9.1.6.14 and installed 9.0.11.502 and the issue goes away.

NateUE avatar Jun 18 '24 22:06 NateUE

@CryingNova Can you send me your igconfig.json file? I haven't been able to reproduce it

d2phap avatar Jun 24 '24 21:06 d2phap

Sorry for taking a while. Here's my igconfig.json from version 9.1 igconfig.json

CryingNova avatar Jul 01 '24 09:07 CryingNova

Same issue here, version 9.1.7.627 This seems to occur when images have similar name prefix, for example '1-LYCJSFZJ4.png' '1-LYCJSFZJ5.png' .... These types of names are common in animation sequence. And only on transparent PNG files, obviously if it is opaque image we would not know because one would cover on top of the other. Just a wild guess, some kind of buffer is not being clear when changing image.

=====================

@d2phap Here is a zip file containing some sample images to reproduce the bug. bug_sample.zip

You can reproduce by using the left and right key while browsing the folder. And they will stack after a few images. There is one image in the folder that does not layer with others, probably because it is a different size.

harrywenjie avatar Jul 05 '24 03:07 harrywenjie

I used the igconfig.json file from @CryingNova & the sample files from @harrywenjie, but I could not reproduce.

I tested on version 9.1.7.627

https://github.com/user-attachments/assets/5c91d648-9474-4bb2-ba4e-f664c226c10a

d2phap avatar Jul 12 '24 04:07 d2phap

@d2phap Here is my reproduction of the bug:

https://github.com/user-attachments/assets/fbe184f4-fb22-4e09-a43b-01e1d3bc676f

Same version 9.1.7.627, I even cleaned out appdata and reinstalled image glass, the bug remains.

harrywenjie avatar Jul 12 '24 08:07 harrywenjie

Thanks for the video! I will try to find a way to reproduce the issue on my machine.

d2phap avatar Jul 12 '24 11:07 d2phap

@harrywenjie Can you check if clicking the "Unload image" menu (or press U) clears the image?

Try the following steps:

  • Open an image
  • Click Unload image, then next image
  • Check if the next image displayed properly?
  • Repeat the above steps

image

d2phap avatar Jul 15 '24 13:07 d2phap

@d2phap I have tried your instructions, Click 'Unload Image'(Or press U) does indeed clear the image from the display. However next image is still layered when immediately clicking on next image or press left or right arrow key. Results are consistent when repeating the steps.

harrywenjie avatar Jul 15 '24 23:07 harrywenjie

@harrywenjie Can you help me check if the issue happens on this build? https://drive.google.com/file/d/1lltfQ5VQN8KXcqKjGDEGUnKoxwRCAGIE/view?usp=sharing

I removed some lines of code for the "View Image Channels" feature which I think is the cause

d2phap avatar Jul 18 '24 13:07 d2phap

@d2phap It is working! Bug is gone in the linked version.

harrywenjie avatar Jul 18 '24 22:07 harrywenjie

@harrywenjie What about this build? https://drive.google.com/file/d/1TR9JuzDKw9lXQkbrGbxh7hLdK5OyAzy9/view?usp=sharing

d2phap avatar Jul 19 '24 15:07 d2phap

@harrywenjie What about this build? https://drive.google.com/file/d/1TR9JuzDKw9lXQkbrGbxh7hLdK5OyAzy9/view?usp=sharing

This works fine as well.

harrywenjie avatar Jul 19 '24 21:07 harrywenjie

Fixed in ImageGlass 9.1.8.723

d2phap avatar Jul 22 '24 09:07 d2phap