pub fn plan_raster(ext: &str, w: u32, h: u32, file_size: u64) -> PlanExpand 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.