Simple smiley image web app using sinatra and RMagick.
brew install imagemagick@6
export LDFLAGS="-L/usr/local/opt/imagemagick@6/lib"
export CPPFLAGS="-I/usr/local/opt/imagemagick@6/include"
export PKG_CONFIG_PATH="/usr/local/opt/imagemagick@6/lib/pkgconfig"
gem install rmagick -v '4.0.0'
Save this perl script as imagick_type_gen.pl
curl -o ./imagick_type_gen.pl https://www.imagemagick.org/Usage/scripts/imagick_type_gen
chmod u+x ./imagick_type_gen.pl
mkdir ~/.magick
./imagick_type_gen.pl > ~/.magick/type.xml