Preparing to run ImageMagick + im4java on Mac OS

-Mac OS 10.13 High Sierra does not include X11 as standard, so install it separately. Reference: http://macperson.net/mac-x11-xquartz/

-Install the library to execute the necessary commands with ImageMagick + im4java library in advance.

brew uninstall jpeg brew install jpeg brew install libjpeg brew install jpeg-turbo brew uninstall jpegoptim brew install jpegoptim

-ImageMagick is installed as a package instead of brew If there is a version folder under / usr / local / Cellar / imagemagick /, uninstall it because there is one that was put in with brew.

brew uninstall imagemagick

-Install ImageMagick as a package Reference: http://cactuslab.com/imagemagick/ Installed as a package installs in / opt / ImageMagick

-Create a symbolic link for the execution command of / opt / ImageMagick / bin under / usr / local / bin

cd /usr/local/bin/

ln -s /opt/ImageMagick/bin/animate animate ln -s /opt/ImageMagick/bin/compare compare ln -s /opt/ImageMagick/bin/composite composite ln -s /opt/ImageMagick/bin/conjure conjure ln -s /opt/ImageMagick/bin/convert convert ln -s /opt/ImageMagick/bin/display display ln -s /opt/ImageMagick/bin/identify identify ln -s /opt/ImageMagick/bin/import import ln -s /opt/ImageMagick/bin/mogrify mogrify ln -s /opt/ImageMagick/bin/montage montage ln -s /opt/ImageMagick/bin/stream stream

Now if you pass / usr / local / bin to im4java and run it, the conversion method will work on Mac as well.

Reference: https://qiita.com/yaoki_dokidoki/items/2ec0540b67dcb4abd5cb

Recommended Posts

Preparing to run ImageMagick + im4java on Mac OS
Preparing to use aws cli on Mac OS X
Preparing to run Flask on EC2
Run NASA CEA on Mac OS X
Run Zookeeper x python (kazoo) on Mac OS X
Run OpenMVG on Mac
Very easy to install SciPy on Mac OS X
Update python on Mac to 3.7-> 3.8
Memo on Mac OS X
How to install Theano on Mac OS X with homebrew
Steps to install matplotlib on Mac
Convert wma to mp3 on Mac
Install Sphinx on Mac OS X
Install Scipy on Mac OS Sierra
How to install OpenCV on Mac
How to run matplotlib on heroku
Install mitmproxy on Mac OS X
Steps to install python3 on mac
Update Python on Mac from 2 to 3
Install pgmagick on Mac OS X 10.9
Continuation ・ Notes on preparing the Python development environment on Mac OS X
How to run Jupyter and Spark on Mac with minimal settings
How to install Theano on Mac OS X 10.10 (using pyenv, anaconda)
How to install drobertadams / toggl-cli on Mac
I want to use Linux on mac
Installed aws-cli On Mac OS X Lion
How to erase Python 2.x on Mac.
How to run Cython on OSX Memo
Easy way to use Python 2.7 on Cent OS 6
How to run MeCab on Ubuntu 18.04 LTS Python
Shpinx (Python documentation builder) on Mac OS X
Run Python on Apache to view InfluxDB data
Mac OS Preferences
python on mac
Steps to use the AWS command line interface (Python / awscli) on Mac OS X
Trajectory when ssh connecting to guest OS on VirtualBox
Steps to install the latest Python on your Mac
Build a machine learning Python environment on Mac OS
Preferences to generate animated GIFs from Python on Mac
How to install caffe on OS X with macports
Try using E-Cell 4 on Windows 7 or Mac OS X
Build a Python development environment on Mac OS X
How to run Self bot on Discord.py [Easy vandalism! ]
Preparing to use Ansible on an existing Linux server
Install PyQt5 with homebrew on Mac OS X Marvericks (10.9.2)
I want to AWS Lambda with Python on Mac!
How to run Django on IIS on a Windows server
Detailed explanation How to run the sample code of UNIX programming 3rd edition on Mac
Note: When Python is run on ImageJ Fiji, java.lang.IllegalArgumentException appears and its solution (mac OS)