Image Magick by homebrew
2019-06-26 本文已影响0人
Jason数据分析生信教室
190626 16:50
考虑到以后要和同事共享,就不用中文了。
Install
- Download and install Xcode
- Use terminal to install homebrew
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- install image magick
brew install imagemagick
How to use Image Magick
- For CM, you have to do next two steps.
- Shrink image to 58.2958%
- Cut out 696x520 pixels
mogrify *.jpg -resize 58.2958% *.jpg
mogrify *.jpg -gravity center -crop 696x520+0+0 *.jpg
How to update Homebrew
New versions of Homebrew come out frequently, so make sure you update it before updating any of the other software components that you’ve installed using Homebrew. * In Terminal type brew update
How to Uninstall Homebrew
Just type
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"
以上