Ubuntu – How to mirror image files via command line

command lineconvert-commandimage processing

What I want to do is very simple. I've a file.png, which I want to mirror, i.e. the result should be a "reflection" of the original image.

I know big tools like GIMP and InkScape can do that, but I'm hoping for a command-line utility, something like convert (which sadly doesn't seem to have such an option, or at least it's not mentioned in the man page).

Best Answer

From quick reading of this, apparently convert calls this option -flop for horizontal mirroring, and -flip for vertical. All I needed to do was

convert -flop input.png output.png
Related Question