docs.rs failed to build img-parts-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
img-parts-0.3.0
img-parts
The img-parts
crate provides a low level API for reading and
writing containers from various image formats, and a high level
API for reading and writing raw ICC profiles and EXIF metadata.
It currently supports Jpeg
, Png
and RIFF
(with some helper
functions for WebP
).
More examples can be found in the examples
directory on GitHub.
Reading and writing raw ICCP and EXIF metadata
use ;
use Jpeg;
use ;
let input = read?;
let output = create?;
let mut jpeg = from_bytes?;
let icc_profile = jpeg.icc_profile;
let exif_metadata = jpeg.exif;
jpeg.set_icc_profile;
jpeg.set_exif;
jpeg.encoder.write_to?;
Modifying chunks
use ;
use ;
use Bytes;
let input = read?;
let output = create?;
let mut jpeg = from_bytes?;
let comment = from;
let comment_segment = new_with_contents;
jpeg.segments_mut.insert;
jpeg.encoder.write_to?;
License
Licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Contribution
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.