Fix code block formatting

This commit is contained in:
Rémi Verschelde
2016-07-17 14:42:35 +02:00
committed by GitHub
parent 4fdbdd256c
commit 384634853c

View File

@@ -130,10 +130,14 @@ Linux/Mac
Using ImageMagicks ``convert`` or ``mogrify`` fixes these warnings.
To fix all PNGs in a project folder do:
find . -type f -name "*.png" -exec convert {} {} \;
.. code-block:: shell
$ find . -type f -name "*.png" -exec convert {} {} \;
``pngcheck`` is also useful in locating the non-conforming images:
.. code-block:: shell
find . -type f -name "*.png" -exec pngcheck {} \;
Windows
@@ -141,4 +145,6 @@ Windows
Using `optiPNG <http://optipng.sourceforge.net/>` fixes these warnings on Windows.
To fix a PNG inplace do:
.. code-block:: shell
optipng -clobber -strip all file.png