Closed vi closed 5 years ago
Looking at expect/actual bytes, I think it's actually related to the image not having an alpha channel:
1366 x 768 x 4 (RGBA) = 4196352 1366 x 768 x 3 (RGB) = 3147264
So the problem is likely that rx doesn't support RGB PNGs. I think the easiest thing to do for now would be to fail with a nicer error message, and later figure out what to do if there is no alpha channel.
Indeed, ffmpeg -v warning -i /tmp/screenshot.png -pix_fmt rgba -y /tmp/screenshota.png
makes the file openable by rx.
4434ce4
When downscaled, it does not crash, but still fails to show the image