diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-25 12:41:12 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2017-09-25 12:41:12 +0300 |
commit | 3e987d3bae41ac1758c0f12cb061df77ffb444d6 (patch) | |
tree | b1cf1c94d8f2a5aa39024b9ecfee2655f3bde268 /src/mod_avatar.erl | |
parent | Pre-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.erl | 8 |
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; |