https://github.com/agent-hellboy/is_svg-rs
A library that determines whether the image type is SVG or not.
https://github.com/agent-hellboy/is_svg-rs
Last synced: 8 months ago
JSON representation
A library that determines whether the image type is SVG or not.
- Host: GitHub
- URL: https://github.com/agent-hellboy/is_svg-rs
- Owner: Agent-Hellboy
- License: mit
- Created: 2020-11-18T12:43:49.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T10:29:40.000Z (over 5 years ago)
- Last Synced: 2025-10-06T03:55:04.274Z (8 months ago)
- Language: Rust
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# is_svg
A library that determines whether the image type is SVG or not.
## Examples
Check the file directly:
```rust
use is_svg::is_svg;
fn main() {
let res = is_svg("path/to/file");
let res = match res {
Ok(true) => println!("The file is in SVG format"),
Ok(false) => println!("The file isn't in SVG format"),
Err(e) => println!("Error while checking: {}", e),
}
}
```