9 stable releases

1.1.0 Aug 13, 2024
1.0.6 Jul 2, 2023
1.0.5 Jan 16, 2022
1.0.4 Aug 26, 2020
0.1.1 Nov 10, 2017

#965 in Images

Download history 32/week @ 2024-08-15 6/week @ 2024-09-12 10/week @ 2024-09-19 11/week @ 2024-09-26 8/week @ 2024-10-03 13/week @ 2024-10-10 4/week @ 2024-10-17 19/week @ 2024-10-31 13/week @ 2024-11-07 12/week @ 2024-11-14 16/week @ 2024-11-21 8/week @ 2024-11-28

52 downloads per month
Used in 3 crates

CC0 license

8KB
103 lines

Load image in Rust using Cocoa decoders

Allows reading any image format that macOS supports natively, in Rust.

Returns an RGBA 8-bit bitmap in sRGB color space with premultiplied alpha.

Links with AppKit.framework. Compiles to nothing on other platforms (just gracefully always returns an error).


lib.rs:

This is based on ImgRef and RGB crates.

Dependencies

~205–440KB