Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yageek/tiff
:city_sunrise: Access TIFF image with Rust
https://github.com/yageek/tiff
rust-crate tiff-format
Last synced: 16 days ago
JSON representation
:city_sunrise: Access TIFF image with Rust
- Host: GitHub
- URL: https://github.com/yageek/tiff
- Owner: yageek
- License: mit
- Created: 2018-07-11T15:31:36.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2019-05-09T14:30:29.000Z (almost 6 years ago)
- Last Synced: 2024-10-20T22:10:12.707Z (4 months ago)
- Topics: rust-crate, tiff-format
- Language: Rust
- Homepage:
- Size: 147 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TIFF
Access TIFF image using Rust
# Reading
```rust
let bytes: &[u8] = include_bytes!("../samples/ycbcr-cat.tif");
let mut cursor = Cursor::new(bytes);
let mut read = TIFFReader::new(&mut cursor).unwrap();
let field = read.get_field::().unwrap();
print("YResolution: {}", field.0);
```