Skip to content

Latest commit

 

History

History
69 lines (47 loc) · 2.25 KB

CHANGES.md

File metadata and controls

69 lines (47 loc) · 2.25 KB

[0.3.1]

  • Bump MSRV to 1.57
  • Bump edition to 2021
  • Bump miniz_oxide crate to 0.8
  • Make license metadata SPDX compliant
  • Ignore remaining PNG data after IEND chunk
  • Bump bytes crate to 1.0
  • Fix decoding JPEGs containing a DRI segment
  • Fix potential integer overflow when calculating jpeg segment size
  • Fix docs.rs build
  • Added support for Png.
  • Added DynImage, an enum that wraps Jpeg, Png and WebP to give easy access to decoding, encoding and the ImageICC and ImageEXIF traits without having to write separate code for every format.
  • Replaced internal usage of Vec<u8> with Bytes from the bytes crate, allowing more efficient memory managment.
  • Replaced Jpeg::read and WebP::read with Jpeg::from_bytes and WebP::from_bytes.
  • Deprecated Jpeg::write_to and WebP::write_to. The new way of encoding an image is to call the encoder method, which will return an ImageEncoder that can write the file piece by piece, return every piece through an Iterator, or copy every piece into a linear piece of memory and returning it.
  • Tidied up and wrote more meaninful errors in the Error enum.
  • Implemented std::error::Error for the Error enum.
  • Added no_std support via the std feature, which is enabled by default.
  • Bumped the MSRV to 1.39.0.
  • Removed the byteorder crate.
  • Improved the documentation and added examples.
  • EXIF extraction via the ImageEXIF trait.
  • Simplified Jpeg Entropy decoding, removing the bytecount crate.

0.1.0

  • Jpeg and WebP read and write support.
  • ICC extraction via the ImageICC trait.