Losslessly compressing images on django

后端 未结 3 1743
执笔经年
执笔经年 2021-01-31 04:46

I\'m doing optimization and Google recommends Lossless compression to images, looking for a way to implement this in Django.

Here\'s the images they specified, I think f

3条回答
  •  温柔的废话
    2021-01-31 05:20

    I have no experience with it, however, picopt looks comprehensive. It relies extensively on external tools to perform the optimisation, so it might be difficult to set up in constrained or hosted server environments.

    Other than that, try googling "python image optimization". There are a few other links that suggest that a PIL based solution might be possible, for example:

    1. How to reduce the image file size using PIL
    2. Image Optimization (Google App Engine with Python)

提交回复
热议问题