I’m using Mac Lion with RVM, homebrew and bundler and the rmagick gem
When I execute the following command:
brew install imagemagick
convert --version
the imagemagick version that is installed is Q16 (16-bit depth) , but I prefer the 8-bit depth version for speed reasons.
what is the correct brew command to achieve this?
I realised homebrew formula’s are just ruby scripts, so searched for the imagemagick formula.
So you can see all the available options in the options method in:
So in the end, it was just a simple
See also homebrew install imagemagick 8 bit version
UPDATE for brew 2
Brew version 2 does not allow additional compile (
./configure) settings anymore. You now have to edit the fromula yourself and recompile.Open and edit the brew formula
Add the following line under the
args = %W[sectionThen install and coile with
-sThen test your new installation of ImageMagick with
You will see the
Q8on the first line after the version number.P.S.
if you use rmagick, and just changed your ImageMagick, make sure you
gem uninstall rmagick && bundle install