An open API service indexing awesome lists of open source software.

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.

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),
}
}

```