Skip to content

Commit eb9b5d7

Browse files
authored
Release 0.18.0-rc (#577)
1 parent 7baf351 commit eb9b5d7

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

CHANGES.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
## 0.18.0
2+
3+
### API Breaking Changes
4+
5+
* Removed deprecated `Info::encode` and `Encoder::set_srgb` methods.
6+
* Improved the compression settings API for encoding.
7+
* `Decoder` now requires a reader that implements `Seek` and `BufRead` traits.
8+
* Bump bitflags dependency to 2.0.
9+
10+
### Other additions
11+
12+
* Added `Reader::read_row` method.
13+
* Add support for parsing eXIf chunk.
14+
* Treat most auxiliary chunk errors as benign.
15+
116
## 0.17.16
217

318
* Make gAMA and cHRM fallback optional for sRGB ([#547])

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "png"
3-
version = "0.17.16"
3+
version = "0.18.0-rc"
44
license = "MIT OR Apache-2.0"
55

66
description = "PNG decoding and encoding library in pure Rust"

src/encoder.rs

-12
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,6 @@ impl<'a, W: Write> Encoder<'a, W> {
266266
self.info.source_chromaticities = Some(source_chromaticities);
267267
}
268268

269-
/// Mark the image data as conforming to the SRGB color space with the specified rendering intent.
270-
///
271-
/// Matching source gamma and chromaticities chunks are added automatically.
272-
/// Any manually specified source gamma, chromaticities, or ICC profiles will be ignored.
273-
#[doc(hidden)]
274-
#[deprecated(note = "use set_source_srgb")]
275-
pub fn set_srgb(&mut self, rendering_intent: super::SrgbRenderingIntent) {
276-
self.info.set_source_srgb(rendering_intent);
277-
self.info.source_gamma = Some(crate::srgb::substitute_gamma());
278-
self.info.source_chromaticities = Some(crate::srgb::substitute_chromaticities());
279-
}
280-
281269
/// Mark the image data as conforming to the SRGB color space with the specified rendering intent.
282270
///
283271
/// Any ICC profiles will be ignored.

0 commit comments

Comments
 (0)