compy icon indicating copy to clipboard operation
compy copied to clipboard

Compy goes wrong when compressing some images, which makes the images unable to load.

Open Web-Distortion opened this issue 5 years ago • 0 comments

Description: Compy goes wrong when compressing some images, which makes the images unable to load.

Reason: This is because Compy uses the content-type'' field in the HTTP response header to judge the type of the file. When some websites mistake thecontent-type'', Compy goes wrong!

Suggested fix: A typical solution to this big is that Compy should judge the file type from the content (e.g., the header of the file) rather than merely using the content type.

Web-Distortion avatar Sep 09 '20 07:09 Web-Distortion