mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
e4d21c1941
The purpose of the module is to cope with legacy and modern XMPP clients posting avatars. It automatically converts vCard based avatars (XEP-0153) to PEP based avatars (XEP-0084) and vice versa. Also, the module supports convertation between avatar image formats on the fly: this is controlled by `convert` option. For example, to convert all avatars into PNG format, configure the module as: mod_avatar: convert: default: png In order to convert only `webp` format to `jpeg`, set the following: mod_avatar: convert: webp: jpeg Note: the module depends on mod_vcard, mod_vcard_xupdate and mod_pubsub. Also, ejabberd should be built with --enable-graphics option.
74 lines
2.1 KiB
Erlang
74 lines
2.1 KiB
Erlang
%%%----------------------------------------------------------------------
|
|
%%%
|
|
%%% ejabberd, Copyright (C) 2002-2017 ProcessOne
|
|
%%%
|
|
%%% This program is free software; you can redistribute it and/or
|
|
%%% modify it under the terms of the GNU General Public License as
|
|
%%% published by the Free Software Foundation; either version 2 of the
|
|
%%% License, or (at your option) any later version.
|
|
%%%
|
|
%%% This program is distributed in the hope that it will be useful,
|
|
%%% but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
%%% General Public License for more details.
|
|
%%%
|
|
%%% You should have received a copy of the GNU General Public License along
|
|
%%% with this program; if not, write to the Free Software Foundation, Inc.,
|
|
%%% 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
%%%
|
|
%%%----------------------------------------------------------------------
|
|
|
|
%% Macros
|
|
{roster_gateway_workaround, @roster_gateway_workaround@}.
|
|
{full_xml, @full_xml@}.
|
|
{db_type, @db_type@}.
|
|
{debug, @debug@}.
|
|
{hipe, @hipe@}.
|
|
{erlang_deprecated_types, @erlang_deprecated_types@}.
|
|
|
|
%% Ad-hoc directories with source files
|
|
{tools, @tools@}.
|
|
|
|
%% Dependencies
|
|
{odbc, @odbc@}.
|
|
{mysql, @mysql@}.
|
|
{pgsql, @pgsql@}.
|
|
{sqlite, @sqlite@}.
|
|
{pam, @pam@}.
|
|
{zlib, @zlib@}.
|
|
{riak, @riak@}.
|
|
{redis, @redis@}.
|
|
{elixir, @elixir@}.
|
|
{iconv, @iconv@}.
|
|
{stun, @stun@}.
|
|
{sip, @sip@}.
|
|
{graphics, @graphics@}.
|
|
|
|
%% Version
|
|
{vsn, "@PACKAGE_VERSION@"}.
|
|
|
|
%% Variables for overlay template files
|
|
|
|
%% Platform-specific installation paths
|
|
{release, true}.
|
|
{release_dir, "${SCRIPT_DIR%/*}"}.
|
|
{sysconfdir, "{{release_dir}}/etc"}.
|
|
{installuser, "@INSTALLUSER@"}.
|
|
{erl, "{{release_dir}}/{{erts_vsn}}/bin/erl"}.
|
|
{epmd, "{{release_dir}}/{{erts_vsn}}/bin/epmd"}.
|
|
{localstatedir, "{{release_dir}}/var"}.
|
|
{libdir, "{{release_dir}}/lib"}.
|
|
{docdir, "{{release_dir}}/doc"}.
|
|
|
|
{latest_deps, @latest_deps@}.
|
|
{system_deps, @system_deps@}.
|
|
|
|
{ldflags, "@LDFLAGS@"}.
|
|
{cflags, "@CFLAGS@"}.
|
|
{cppflags, "@CPPFLAGS@"}.
|
|
|
|
%% Local Variables:
|
|
%% mode: erlang
|
|
%% End:
|
|
%% vim: set filetype=erlang tabstop=8:
|