decoder: Pass on transformations_applied info
This prevents HEIF images from getting transformations applied again that already has been applied by the decoder. Closes #251
This commit is contained in:
parent
c1ed2b97a6
commit
abdd54def7
3 changed files with 5 additions and 3 deletions
|
|
@ -62,9 +62,9 @@ impl Glycin {
|
|||
let image = image_request.request().await?;
|
||||
|
||||
if let Some(exif_raw) = image.info().exif.clone().into() {
|
||||
updater.send(DecoderUpdate::Metadata(ImageMetadata::from_exif_bytes(
|
||||
exif_raw,
|
||||
)));
|
||||
let mut metadata = ImageMetadata::from_exif_bytes(exif_raw);
|
||||
metadata.heif_transform = image.info().transformations_applied;
|
||||
updater.send(DecoderUpdate::Metadata(metadata));
|
||||
}
|
||||
|
||||
let dimensions = (image.info().width, image.info().height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue