feh icon indicating copy to clipboard operation
feh copied to clipboard

Ability to have non-destructive external processing as an action

Open zonaj opened this issue 3 years ago • 1 comments

It would be a great feature to be able to permit the creation of actions that modify (non-destructively) the image. I'm not sure if this is already possible but I have not found a way to do it. The way I'm thinking about it, is that it would do the same thing as that already-existing built-in imagemagick conversion feature, but allowing you to use any shell commands of your choosing for performing the conversion.

My use case is that I would like to be able to view all the layers of GIF files that have multiple layers (those are animated GIFs, technically, but with all frames happening at the first frame, I think). Imagemagick can do this without any trouble if I do "convert myfile.gif -layers flatten outfile.png" before viewing. This is so tantalizingly close to some existing functionality in feh that it hurts... What I'm thinking is that the user could create actions that can spit out the result of an image manipulation to a temp file, or to stdout, and feh would, upon invoking the action, do the necessary to do that processing and then display the result..

Sorry if this is not a very well thought-out ticket... And if you feel like it could be a good idea but you don't have enough interest to implemented it, I might try my hand at it...

zonaj avatar Nov 17 '21 00:11 zonaj

#638 Here's my take on it..

zonaj avatar Nov 18 '21 14:11 zonaj