summaryrefslogtreecommitdiff
path: root/src/mod_avatar.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Fix typosKian-Meng Ang2022-01-241-2/+2
|
* Use specific syntax so modules and top-level will be linksBadlop2021-08-231-2/+2
| | | | | | If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Fix most EDoc errors, even if that's not used nowadays apparentlyBadlop2020-05-111-1/+1
|
* Rewrite sentences in modules options examples, to not break Docs indentationBadlop2020-04-281-4/+1
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-0/+35
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-18/+18
|
* Add/improve type specsEvgeny Khramtsov2019-07-101-0/+1
|
* Get rid of useless dialyzer instructionsEvgeny Khramtsov2019-07-011-1/+0
|
* Avoid using broad map() type wherever possibleEvgeny Khramtsov2019-06-271-1/+2
|
* Make logging messages more consistentEvgeny Khramtsov2019-06-241-10/+10
|
* Don't crash on empty avatar dataEvgeny Khramtsov2019-06-241-0/+5
|
* Fix validator of mod_avatarEvgeny Khramtsov2019-06-141-12/+10
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-44/+28
|
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* mod_avatar: Reduce log level for too large avatarsHolger Weiss2018-09-261-0/+4
| | | | | Log a warning rather than an error when publishing an avatar fails due to its size exceeding the ?MAX_PAYLOAD_SIZE for PubSub items.
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Advertise disco#info and disco#items features in mod_discoEvgeniy Khramtsov2018-06-131-1/+1
| | | | Fixes #2470
* Set -protocol() directive for mod_avatarEvgeniy Khramtsov2018-03-191-0/+2
|
* Fulfill all requirements of XEP-0398 v0.2.0Evgeniy Khramtsov2018-03-161-3/+22
| | | | | | These include: - Avoid rewriting vcard:x:update tags with empty <photo/> element - Advertise "urn:xmpp:pep-vcard-conversion:0" feature
* Introduce 'rate_limit' option of mod_avatarEvgeniy Khramtsov2018-02-051-3/+9
| | | | | | | | The option controls how many avatars a user can upload per minute. The option takes positive integer values. The default is 10. Note that the option only takes effect when an avatar is about to convert to a different format, i.e. it implies that `convert` option is configured.
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-6/+8
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Improve validation of 'convert' optionEvgeniy Khramtsov2018-01-161-7/+19
|
* Always build eimp dependencyEvgeniy Khramtsov2018-01-151-45/+22
| | | | | | Even if no suitable C graphics libraries are detected at compile time, the package is still usable because it provides `eimp:get_type/1` which is used by mod_avatar.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Use eimp instead of ImageMagick calls for thumbnails creationEvgeniy Khramtsov2017-09-251-7/+1
|
* Add 'width' and 'height' to avatar infoEvgeniy Khramtsov2017-09-181-0/+9
|
* Add GIF supportEvgeniy Khramtsov2017-09-171-3/+14
|
* Introduce mod_avatarEvgeniy Khramtsov2017-09-171-0/+436
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.