metadata: Report if image can be transparent
This feature was not implemented before and would always return true, triggering a line detection for the background color in large JPEG images. Part-of: <https://gitlab.gnome.org/GNOME/loupe/-/merge_requests/442>
This commit is contained in:
parent
daadbda4ee
commit
1ea4a3ad5d
2 changed files with 7 additions and 5 deletions
|
|
@ -69,7 +69,7 @@ impl Glycin {
|
|||
let frame = image.next_frame().await?;
|
||||
|
||||
let mut metadata: Metadata = Metadata::default();
|
||||
metadata.set_frame_info(frame.details().clone());
|
||||
metadata.set_frame_metadata(&frame);
|
||||
updater.send(DecoderUpdate::Metadata(Box::new(metadata)));
|
||||
tiles.set_original_dimensions((frame.width() as u32, frame.height() as u32));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue