mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.9.x] Optimized docs images and documented the process.
Backport of 35440ceab7 from master
This commit is contained in:
committed by
Tim Graham
parent
96c0ba380d
commit
bb1b2251ef
@@ -256,6 +256,21 @@ If a function, attribute, etc. is added, it's also okay to use a
|
||||
We can simply remove the ``.. versionadded:: A.B`` annotation without any
|
||||
indentation changes when the time comes.
|
||||
|
||||
Minimizing images
|
||||
-----------------
|
||||
|
||||
Optimize image compression where possible. For PNG files, use OptiPNG and
|
||||
AdvanceCOMP's ``advpng``:
|
||||
|
||||
.. code-block:: console
|
||||
|
||||
$ cd docs/
|
||||
$ optipng -o7 -zm1-9 -i0 -strip all `find . -type f -not -path "./_build/*" -name "*.png"`
|
||||
$ advpng -z4 `find . -type f -not -path "./_build/*" -name "*.png"`
|
||||
|
||||
This is based on OptiPNG version 0.7.5. Older versions may complain about the
|
||||
``--strip all`` option being lossy.
|
||||
|
||||
An example
|
||||
----------
|
||||
|
||||
|
||||
Reference in New Issue
Block a user