Image Disinfection Library

I have a website that displays images submitted by users. I am worried about some wiseguy uploading an image that could exploit some 0-day vulnerability in the browser. In addition, I would like to clear the metadata images (for example, EXIF ​​data) and try to compress them further without loss (there are several such command-line utilities for PNG and JPEG).

Based on the foregoing, my question is this: is there some C / C ++ library that matches the scenario described above? And even if a full pipeline of parsing → cleaning → disinfection → compression → writing is not available in any separate library, can I at least implement parsing → cleaning → disinfection → writing a pipeline (without compression) to a library that supports JPEG / PNG / GIF ?

+3
source share
1 answer

: 0- , , . "presanitizing", , , .

, - , , , , . , chroot ( , ), , , .

, ImageMagick, (, PNG JPEG). : (, JPEG), .

+5

All Articles