mkdocs build fails with optimize plugin and PNG files because missing pngquant
Pages
Looks like the mkdocs build fails when the optimize plugin is enabled and PNG files are present. As per the docs of the optimize plugin,
pngquant
pngquant
is used for PNG optimization, and
Pillow
Pillow
is used for jpeg files. Jpeg files get optimized fine, PNG files throw an error:
INFO - Optimized media file: REDACTED.jpg 22.7 kB ↓ 25.6 kB [53.1%]...ERROR - Couldn't optimize image 'REDACTED.png' in 'docs': 'pngquant' not found. Make sure 'pngquant' is installed and in your path
INFO - Optimized media file: REDACTED.jpg 22.7 kB ↓ 25.6 kB [53.1%]...ERROR - Couldn't optimize image 'REDACTED.png' in 'docs': 'pngquant' not found. Make sure 'pngquant' is installed and in your path
This happens for both v2 and v3 build images
What can we do to solve this? (I looked if there's a way for me to install