7 stable releases

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

#837 in Images

Download history 31/week @ 2024-01-07 1/week @ 2024-01-14 1/week @ 2024-02-11 16/week @ 2024-02-18 49/week @ 2024-02-25 11/week @ 2024-03-03 17/week @ 2024-03-10 6/week @ 2024-03-17 6/week @ 2024-03-24 47/week @ 2024-03-31 19/week @ 2024-04-07 2/week @ 2024-04-14 9/week @ 2024-04-21

79 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

~135–385KB