fractal::utils::media::image

Function load_image

Source
async fn load_image(
    file: File,
    request_dimensions: Option<FrameDimensions>,
) -> Result<Image, ErrorCtx>
Expand description

Load the given file as an image into a GdkPaintable.

Set request_dimensions if the image will be shown at specific dimensions. To show the image at its natural size, set it to None.