UsingMac.com

All About Apple Mac

Advertisement

Terminal can help you perfectly flip your image either you want to flip it horizontally or vertically. Of course, you can flip diagonally also, by flipping horizontally after the image flipped vertically.

What benefit me by doing this..

You can save a lot of time and Mac memory while performing this image manipulation. It's just a line of code so you don't need to spend much time to write the code for flipping image. And you don't need to open image editing Application that, of course, eat up a lot of memory of your Mac, all you need is only Terminal (including your keyboard and a little skill).

Flip and Flop..

Flip is for flipping vertically and Flop is for flipping horizontally.


And this is the code..

convert [image name] -flip [new image name]
convert [image-name] -flop [new-image-name]

How to use this code?

  • Go to the image file directory. It can be done either by using command line cd to the destined directory or by opening that directory in Finder and use OpenTerminalHere.
  • Type in that code. Use auto-complete feature for quicker result, i.e. using
  • Hit and the new flipped image will appear in the same directory with assigned name