Hi. I wrote small script-like program to remove image metadata and compress it without saving to disk.
It was inspired by a program on android that can do the same, but using share functionality. So, you share image to the program, then it compresses it and share screen pops up back again, but this time with optimized image.
On Linux I can do something like this:
xclip -selection clipboard -target image/png -o | ffmpeg -i pipe:0 -f webp pipe:1 | xclip -selection clipboard -target image/png -in
Basically, that’s what the program does. Though, someday I want to add RMB context menu, to be a bit more flexible. There’s some settings that can only be set via command line args.
What’s interesting, it seems none of the Linux programs read image/webp or other MIME types. Apparently, all they know about is image/png while happily accepting webp bytes faked as image/png type
.
Source: https://codeberg.org/knightpp/masnyi.
