summaryrefslogtreecommitdiff
path: root/src/mod_avatar.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-09-25 12:41:12 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-09-25 12:41:12 +0300
commit3e987d3bae41ac1758c0f12cb061df77ffb444d6 (patch)
treeb1cf1c94d8f2a5aa39024b9ecfee2655f3bde268 /src/mod_avatar.erl
parentPre-install libgd and libwebp (diff)
Use eimp instead of ImageMagick calls for thumbnails creation
Diffstat (limited to 'src/mod_avatar.erl')
-rw-r--r--src/mod_avatar.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mod_avatar.erl b/src/mod_avatar.erl
index 4d91e1fb..dde58abf 100644
--- a/src/mod_avatar.erl
+++ b/src/mod_avatar.erl
@@ -38,7 +38,7 @@
%%% API
%%%===================================================================
start(Host, _Opts) ->
- case have_eimp() of
+ case misc:have_eimp() of
true ->
ejabberd_hooks:add(pubsub_publish_item, Host, ?MODULE,
pubsub_publish_item, 50),
@@ -416,12 +416,6 @@ decode_mime_type(MimeType) ->
encode_mime_type(Type) ->
<<"image/", (atom_to_binary(Type, latin1))/binary>>.
--ifdef(GRAPHICS).
-have_eimp() -> true.
--else.
-have_eimp() -> false.
--endif.
-
mod_opt_type({convert, png}) ->
fun(jpeg) -> jpeg;
(webp) -> webp;