An ImageMagick file processor suite for Exfile.
- A working ImageMagick installation.
identify
andconvert
must be in thePATH
of the running environment. - Elixir
~> 1.2.0
-
Add exfile_imagemagick to your list of dependencies in
mix.exs
:def deps do [{:exfile_imagemagick, "~> 0.1.5"}] end
-
Ensure exfile_imagemagick is started before your application:
def application do [applications: [:exfile_imagemagick]] end
exfile_imagemagick
automatically registers 4 processors:
convert
fill
limit
metadata
Instead of ImageMagick you may optionally choose GraphicsMagick as image processor.
In config.exs
:
config :exfile_imagemagick, image_processor: :graphicsmagick
You also need to ensure that GM
binary is in your environment's PATH
.
See ExfileImagemagick.Config
for defaults.