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/misc.erl | |
parent | Pre-install libgd and libwebp (diff) |
Use eimp instead of ImageMagick calls for thumbnails creation
Diffstat (limited to 'src/misc.erl')
-rw-r--r-- | src/misc.erl | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/misc.erl b/src/misc.erl index 32699e76..06d81cb8 100644 --- a/src/misc.erl +++ b/src/misc.erl @@ -33,7 +33,7 @@ atom_to_binary/1, binary_to_atom/1, tuple_to_binary/1, l2i/1, i2l/1, i2l/2, expr_to_term/1, term_to_expr/1, now_to_usec/1, usec_to_now/1, encode_pid/1, decode_pid/2, - compile_exprs/2, join_atoms/2, try_read_file/1]). + compile_exprs/2, join_atoms/2, try_read_file/1, have_eimp/0]). %% Deprecated functions -export([decode_base64/1, encode_base64/1]). @@ -213,6 +213,12 @@ try_read_file(Path) -> erlang:error(badarg) end. +-ifdef(GRAPHICS). +have_eimp() -> true. +-else. +have_eimp() -> false. +-endif. + %%%=================================================================== %%% Internal functions %%%=================================================================== |