Skip to content

v0.1.8

Choose a tag to compare

@lilith lilith released this 29 Mar 09:26
· 104 commits to main since this release

Unify Orientation with zenpixels::Orientation.

The local Orientation enum is removed; zencodec now re-exports the canonical zenpixels::Orientation type with full D4 dihedral group algebra (compose, inverse, forward_map).

Breaking changes (variant/method renames)

Old New
Normal Identity
FlipHorizontal FlipH
FlipVertical FlipV
from_exif(u16) -> Self from_exif(u8) -> Option<Self>
exif_value() -> u16 to_exif() -> u8
swaps_dimensions() swaps_axes()
display_dimensions() output_dimensions()

Migration

// old
Orientation::from_exif(v as u16)
// new
Orientation::from_exif(v as u8).unwrap_or_default()

All prior 0.1.x versions have been yanked. This is the only non-yanked 0.1.x release.