Closed 0Karakurt0 closed 1 year ago
I currently don't have a machine with X11 setup so I cannot test this.
But that's really weird, maim doesn't have different code for saving into file or piping. Could you try piping into file -
and reading what it says? Should be something like "PNG image RGBwhatever XxY pixels"
. Otherwise that's really a bug in maim.
~ ➜ cat pipe.tmp | file - /dev/stdin: empty ~ ➜
/dev/stdin: empty
There is just no data! Are you sure that maim -s -k - > ~/pipe.tmp
actually writes any output?
I suspect maim doesn't support -
syntax to write to stdout and instead creates file called -
and writes PNG data into it?
Can you try doing just maim -s -k > ~/pipe.tmp
?
That's it! And I was wondering who the hell spams ~/- me.
Well, I think this should be adjusted to be in line with other unix utilities
Well, I think this should be adjusted to be in line with other unix utilities
I definitely agree with you.
"Streamed" trough pipe image gets corrupted along the way
Example code
switching to scrot -s - > ~/pipe.tmp helps, therefore it's maim's bug.