src/lib.rs

photocraft · crates/psd/src/lib.rs · rust · Apache-2.0
files, tag:knn-classified

! # photocraft-psd ! ! Faithful, lossless reader and writer for Adobe Photoshop PSD (version 1) ! and PSB (version 2, "large document format") files. ! ! * [`PsdFile::from_bytes`] parses a file into a format-level model; ! [`PsdFile::to_bytes`] writes it back. Unmodified files ro

// Source: https://github.com/storytold/photocraft | License: Apache-2.0 | Copyright 2026 ArtCraft Team and the PhotoCraft contributors
// Provided via justclaw.it.com; keep this notice with the code.
//! # photocraft-psd
//!
//! Faithful, lossless reader and writer for Adobe Photoshop PSD (version 1)
//! and PSB (version 2, "large document format") files.
//!
//! * [`PsdFile::from_bytes`] parses a file into a format-level model;
//!   [`PsdFile::to_bytes`] writes it back. Unmodified files round-trip byte
//!   for byte: channel data is kept in its original encoding, unknown tagged
//!   blocks and resources are kept raw, and padding is preserved.
//! * Channel data is decoded lazily ([`ChannelData::decode`],
//!   [`ImageData::decode`]) with all four compression methods supported for
//! 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key