Skip to main content

optimize_png

Function optimize_png 

Source
pub fn optimize_png(
    bytes: &[u8],
    effort: u8,
    reductions: bool,
) -> Result<OptimizedPng>
Expand description

Optimize a static PNG within the browser’s conservative per-image budget. Returns the original bytes when no smaller encoding is found.