Skip to main content

needs_reencode

Function needs_reencode 

Source
pub fn needs_reencode(
    format: PhotoFormat,
    fits: bool,
    strip_metadata: bool,
    has_metadata: bool,
) -> bool
Expand description

ADR-0045 rule: the original passes through untouched only when the format is Original, it fits both limits, and there is no metadata to strip.