Crate glycin

source ·
Expand description

Glycin allows to decode images into gdk::Textures and to extract image metadata. The decoding happens in sandboxed modular image loaders that have to be provided as binaries. The glycin-utils for more details.

§Example

let file = gio::File::for_path("image.jpg");
let image = Loader::new(file).load().await?;

let height = image.info().height;
let texture = image.next_frame().await?.texture;

You can pass the texture of a Frame to gtk4::Image::from_paintable() to display the image.

§Features

  • tokio – Makes glycin compatible with zbus using tokio.

Structs§

Enums§

Constants§

Functions§

Type Aliases§