pub fn set_jpeg_orientation(data: &[u8], o: u16) -> Option<Vec<u8>>Expand description
Returns data with its EXIF orientation set to o; the image data is
copied unchanged. An existing tag is overwritten in place. If the EXIF
block has no orientation, a copy of IFD0 with the tag added is appended
to the block and the header pointed at it (offsets elsewhere stay valid).
A JPEG with no EXIF gets a minimal block after its JFIF header.