| Crates.io | skia-rs-codec |
| lib.rs | skia-rs-codec |
| version | 0.2.0 |
| created_at | 2026-01-02 20:26:47.779436+00 |
| updated_at | 2026-01-03 18:46:08.697033+00 |
| description | Image encoding and decoding for skia-rs |
| homepage | https://github.com/pegasusheavy/skia-rs |
| repository | https://github.com/pegasusheavy/skia-rs |
| max_upload_size | |
| id | 2019164 |
| size | 173,643 |
Image encoding and decoding for skia-rs, a pure Rust implementation of the Skia 2D graphics library.
| Feature | Default | Description |
|---|---|---|
png |
✅ | PNG codec |
jpeg |
✅ | JPEG codec |
gif |
✅ | GIF codec |
webp |
✅ | WebP codec |
use skia_rs_codec::{Image, ImageFormat};
// Load an image
let image = Image::from_file("photo.jpg")?;
// Get image info
println!("Size: {}x{}", image.width(), image.height());
// Detect format from bytes
let format = ImageFormat::from_bytes(&data);
// Encode to PNG
let png_data = image.encode_png()?;
MIT OR Apache-2.0
See the main repository for more information.