diff --git a/tutorials/asset_pipeline/managing_image_files.rst b/tutorials/asset_pipeline/managing_image_files.rst index ef8ae0052..9cc5c9850 100644 --- a/tutorials/asset_pipeline/managing_image_files.rst +++ b/tutorials/asset_pipeline/managing_image_files.rst @@ -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 ` fixes these warnings on Windows. To fix a PNG inplace do: +.. code-block:: shell + optipng -clobber -strip all file.png