Commits

Ales Zabala Alava committed 6f9462f

Update README.rst to document new setting: WATERMARK_PARAMS

Comments (0)

Files changed (1)

 position for an image's watermark on each request, set
 ``WATERMARK_RANDOM_POSITION_ONCE`` to ``False`` in your ``settings.py``.
 
+You could also provide some defaults for watermark parameters. For
+example:
+
+```
+WATERMARK_PARAMS = {
+    "sitewatermark": "watermark name,position=tr,opacity=35",
+}
+```
+
+The syntax of the parameters is the same as for ``watermark`` filter (see
+below).
+
 Usage
 =====
 
 PNG files for best results.  I can't make any guarantees that other formats
 will work nicely.
 
-The first parameter to the ``watermark`` filter _must_ be the name you
-specified for the watermark in the Django admin.  You can then choose from a
-few other parameters to customize the application of the watermark.  Here they
-are:
+If you have defined some defaults in ``WATERMARK_PARAMS`` setting then the first
+parameter to the ``watermark`` filter can be the key of that dict. Otherwise the
+first parameter _must_ be the name you specified for the watermark in the Django
+admin. You can then choose from a few other parameters to customize the
+application of the watermark. Here they are:
 
 * ``position`` - This one is quite customizable.  First, you can plug your
   watermark into one corner of your images by using one of ``BR``, ``BL``,