Files & Images sanitation #3424
Closed
amitnos123
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
There isn't really anything web- / http-specific about this, so I don't really see the connection to axum. Even as an example, it seems rather arbitrary. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
From the current panda image, which is a polygloth image.
I thought it would be nice to add to Axum as an example or as a feature how to sanitize files and images.
what are your thoughts?
From what I read to sanitize a pixel image, not vector image, you recreate the image.
You copy the the pixels and create a new image with same pixels.
This can be done via
image
crate in Rust.For SVG, there is a Rust crate that suppose to sanitize..
Liberoffice and Inkscape both uses
libcdr
written in cpp.CDR stands for Content Disarm & Reconstruction.
I didn't find an equivalent CDR library for Rust.
Beta Was this translation helpful? Give feedback.
All reactions