UsingMac.com

Mac Tricks and Tips, Wallpapers and Applications for Mac Users

Flip Image in Terminal Way

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?

  1. 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.
  2. Type in that code. Use auto-complete feature for quicker result, i.e. using Tab
  3. Hit Return and the new flipped image will appear in the same directory with assigned name

Categories: UNIX, Open Source
Tags: Editor

Subscribe to RSS Leave a Comment (0)

Related Entries

Some articles taken from our resource base, tightly related to current article, to empower you with more knowledge on tweaking the most out of your Mac.