Skip to main content

plan_raster

Function plan_raster 

Source
pub fn plan_raster(ext: &str, w: u32, h: u32, file_size: u64) -> Plan
Expand description

Plan for a raster image of w x h pixels and file_size bytes.

The original is shown directly when it is at most 960 px on both sides and at most 15 MB; a PNG over 1 MiB is the exception and still gets a thumbnail.