An ImageMagick file processor suite for Exfile.
- A working ImageMagick installation.
identifyandconvertmust be in thePATHof 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:
convertfilllimitmetadata
Instead of ImageMagick you may optionally choose GraphicsMagick as image processor.
In config.exs:
config :exfile_imagemagick, image_processor: :graphicsmagickYou also need to ensure that GM binary is in your environment's PATH.
See ExfileImagemagick.Config for defaults.