X-Git-Url: https://git.cweiske.de/surrogator.git/blobdiff_plain/9953ac3142e7813f252c90f8c2ce1669e7825566..HEAD:/README.rst diff --git a/README.rst b/README.rst index 7a6c63e..6f3575f 100644 --- a/README.rst +++ b/README.rst @@ -6,7 +6,7 @@ Simple open source Libravatar__ compatible avatar image server written in PHP. Features: -- Delivers images for email addresses +- Delivers images for email addresses and OpenIDs - Very easy to setup. - No graphics processing is done on the server, keeping the CPU load low. All avatar images get pre-generated for a set of sizes @@ -14,8 +14,11 @@ Features: returned. - Supports the ``mm`` fallback image (mystery man) -__ http://wiki.libravatar.org/api/ +__ https://www.libravatar.org/ + +Homepage: `sf.net/p/surrogator`__ +__ https://sourceforge.net/p/surrogator/ ===== Setup @@ -24,7 +27,7 @@ Setup 1. Copy ``data/surrogator.config.php.dist`` to ``data/surrogator.config.php`` (remove the ``.dist``) 2. Adjust the config file to your needs -3. Create a default image and put it into the raw folder, name it ``default.png`` +3. (optional) Create a default image and put it into the raw folder, name it ``default.png`` 4. Setup your web server and set the document root to the ``www/`` directory. Make sure you allow the ``.htaccess`` file and have ``mod_rewrite`` activated. 5. Add DNS entries for ``_avatars._tcp`` and ``_avatars-sec._tcp``. @@ -51,7 +54,13 @@ Usage 1. Put images in ``raw/`` folder. Name has to be email address + image file extension, for example ``foo@example.org.png``. - Surrogator supports ``.png`` and ``.jpg``. + Surrogator supports ``.png``, ``.jpg`` and ``svg`` files. + + For OpenIDs, use the url-encoded URL + extension as filename, for example + replace ``/`` with ``%2F``. + The filename for ``http://example.org/~foo`` would be + ``http:%2F%2Fexample.org%2F~foo.jpg``. + 2. Run ``php surrogator.php``. The small files get generated. 3. You will get more information with ``-v`` @@ -59,6 +68,8 @@ Usage when the raw file is newer than the "square" file in the var folder. You can force the update with ``--force``. +Note: PHP imagick extension is required for ``svg`` files. + ==== Test