| Crates.io | zune-psd |
| lib.rs | zune-psd |
| version | 0.5.0-rc0 |
| created_at | 2023-11-16 20:11:02.18387+00 |
| updated_at | 2024-04-07 16:10:18.356628+00 |
| description | Photoshop Simple PSD decoder |
| homepage | |
| repository | https://github.com/etemesi254/zune-image/tree/dev/crates/zune-psd |
| max_upload_size | |
| id | 1037897 |
| size | 25,558 |
A simple photoshop reader.
This crate doesn't handle any fancy photoshop features, including layering, blending,metadata extraction and such, it simply copies some bytes it believes are the base layer hence it may not suit your needs
Cargo.tomlcargo add zune-psd
or include it directory in your Cargo.toml
[dependencies]
zune-psd="0.4"
Then use either one of the decode_ variants to get pixel data
decode_raw will always return Vec<u8> while decode distinguishes return type via image
depth (either 8-bit or 16-bit)
The decoder is fairly fast, we don't do any fancy processing so there is no need to compare it with other crates (I'm not sure any supports full parsing), hence there are no benchmarks.
The crate is fuzz tested in CI to ensure untrusted input does not cause a panic