IMV - Cannot open screenshots from my pixel 8

Gwenview

Pinta

Gimp

Forum - trys / fails…

Viewnoir

If I run the image through optipng it “fixes” it, but am I missing a library?
Fixed image:

Everything chucks up errors, e.g.

gwenview Screenshot_20260521-112048.png 
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
dlopen: /usr/lib/libheif/libheif-j2kdec.so: undefined symbol: _Z19get_subsampled_sizejj12heif_channel11heif_chromaPjS1_
libpng error: Read Error
libpng error: Read Error

But gwenview does display the image, everything else doesn’t.

Oh strange, so the PNG is somehow malformed?

Just a thought, are you sure it’s a PNG? Extension aside, perhaps it’s actually a different format? If you have a hex editor, you could always confirm it’s a PNG by verifying the first 8 bytes are (decimal):

137 80 78 71 13 10 26 10

(source)

No, they aren’t…

Even the fixed images start 89.

That actually checks out as PNG :+1: You need to convert the hex to decimal.

If the optipng output presents that, can you confirm the original has the same start hex?

Sorry missed the decimal bit :blush:

Yes, they match fixed top / not working bottom:

I transferred with kdeconnect, and then emailed and downloaded - still no joy.

optipng:

optipng -fix Screenshot_20260521-112048.png -out 1.png
** Processing: Screenshot_20260521-112048.png
Warning: Can't read the input file or unexpected end of file
1080x2400 pixels, 3x8 bits/pixel, RGB
Recoverable errors found in input. Fixing...
Input IDAT size = 2490368 bytes
Input file size = 2494073 bytes

Trying:
  zc = 9  zm = 8  zs = 0  f = 0		IDAT size = 2478319
  zc = 9  zm = 8  zs = 0  f = 5		IDAT size = 2475046
  zc = 9  zm = 8  zs = 1  f = 5		IDAT size = 2431811
                               
Selecting parameters:
  zc = 9  zm = 8  zs = 1  f = 5		IDAT size = 2431811

Output file: 1.png

Output IDAT size = 2431811 bytes (58557 bytes decrease)
Output file size = 2431896 bytes (62177 bytes = 2.49% decrease)

** Status report
1 file(s) have been processed.
1 error(s) have been encountered.
1 erroneous file(s) have been fixed.

And then the forum can load it (1.png).