zune-psd

Crates.iozune-psd
lib.rszune-psd
version0.5.0-rc0
sourcesrc
created_at2023-11-16 20:11:02.18387
updated_at2024-04-07 16:10:18.356628
descriptionPhotoshop Simple PSD decoder
homepage
repositoryhttps://github.com/etemesi254/zune-image/tree/dev/crates/zune-psd
max_upload_size
id1037897
size25,558
Caleb Etemesi (etemesi254)

documentation

README

zune-psd

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

Usage

  1. First include it into your Cargo.toml
cargo 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)

Speed

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.

Security

The crate is fuzz tested in CI to ensure untrusted input does not cause a panic

Commit count: 1717

cargo fmt