Reducing the file size of a very large images, without changing the image dimensions

后端 未结 12 2149
囚心锁ツ
囚心锁ツ 2021-01-31 08:51

Consider an application handling uploading of potentially very large PNG files.

All uploaded files must be stored to disk for later retrieval. However, the PNG files ca

12条回答
  •  终归单人心
    2021-01-31 09:08

    I know you want to preserve the pixel size, but can you reduce the pixel size and adjust the DPI stored with the image so that the display size is preserved? It depends on what client you'll be using to view the images, but most should observe it. If you are using the images on the web, then you can just set the pixel size of the tag.

提交回复
热议问题