Skip to content

Commit

Permalink
Support new rendering modes in CLIs
Browse files Browse the repository at this point in the history
  • Loading branch information
LaurenzV committed Oct 14, 2024
1 parent d091d3c commit e428d82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/usvg/src/tree/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,10 @@ impl std::str::FromStr for ImageRendering {
match s {
"optimizeQuality" => Ok(ImageRendering::OptimizeQuality),
"optimizeSpeed" => Ok(ImageRendering::OptimizeSpeed),
"smooth" => Ok(ImageRendering::Smooth),
"high-quality" => Ok(ImageRendering::HighQuality),
"crisp-edges" => Ok(ImageRendering::CrispEdges),
"pixelated" => Ok(ImageRendering::Pixelated),
_ => Err("invalid"),
}
}
Expand Down

0 comments on commit e428d82

Please sign in to comment.