glycin 3.1.0

Sandboxed image decoding
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use glycin_utils::{Frame, ImgBuf};

use crate::Image;

pub fn apply_exif_orientation(img_buf: ImgBuf, frame: &mut Frame, image: &Image) -> ImgBuf {
    if image.details().transformation_ignore_exif() {
        img_buf
    } else {
        let orientation = image.transformation_orientation();
        glycin_utils::editing::change_orientation(img_buf, frame, orientation)
    }
}