Skip to content

Commit 85b5df7

Browse files
authored
Merge pull request #292 from image-rs/changelog-0.10.1
Changelog 0.10.2
2 parents 34232d8 + 756ea3e commit 85b5df7

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Version 0.10.2
2+
3+
Republished 0.10.1, fixing an accidentally removed method (`Decoder::find_tag_unsigned_vec`).
4+
15
# Version 0.10.1
26

37
New features:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "tiff"
3-
version = "0.10.1"
3+
version = "0.10.2"
44
edition = "2021"
55
resolver = "2"
66

src/decoder/mod.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,6 +1281,15 @@ impl<R: Read + Seek> Decoder<R> {
12811281
self.image_ifd().find_tag_unsigned(tag)
12821282
}
12831283

1284+
/// Tries to retrieve a vector of all a tag's values and convert them to the desired unsigned
1285+
/// type.
1286+
pub fn find_tag_unsigned_vec<T: TryFrom<u64>>(
1287+
&mut self,
1288+
tag: Tag,
1289+
) -> TiffResult<Option<Vec<T>>> {
1290+
self.image_ifd().find_tag_unsigned_vec(tag)
1291+
}
1292+
12841293
/// Tries to retrieve a tag from the current image directory and convert it to the desired
12851294
/// unsigned type. Returns an error if the tag is not present.
12861295
pub fn get_tag_unsigned<T: TryFrom<u64>>(&mut self, tag: Tag) -> TiffResult<T> {

0 commit comments

Comments
 (0)