jtheoof / swappy

A Wayland native snapshot editing tool, inspired by Snappy on macOS
MIT License
1.04k stars 39 forks source link

"original image not loaded" when piping image in via stdin #137

Closed jazzpi closed 1 year ago

jazzpi commented 1 year ago

Piping the output of grim (or of cat image.png) into swappy causes it to fail with

(swappy:18194): CRITICAL : 15:39:17.249: original image not loaded

swappy -f image.png works fine.

I'm on Fedora 36, using Sway version 1.7 and swappy version 1.4.0.

jtheoof commented 1 year ago

Can you post the command you use?

jazzpi commented 1 year ago

I was using cat image.png | swappy. After rereading the manpage, I realized I should use cat image.png | swappy -f -, which works fine. Sorry for any confusion.


A more descriptive error message would be nice though :)