🐛 Fix keep aspect ratio support

This commit is contained in:
Alejandro Alonso 2025-05-26 11:04:10 +02:00 committed by Alonso Torres
parent 327db5a1a3
commit c7c8e91183
4 changed files with 52 additions and 26 deletions

View file

@ -18,6 +18,7 @@ impl From<RawImageFillData> for ImageFill {
let id = uuid_from_u32_quartet(value.a, value.b, value.c, value.d);
let opacity = (value.opacity * 255.).floor() as u8;
Self::new(id, opacity, value.width, value.height)
// TODO: read keep_aspect_ratio from RawImageFillData when implemented
Self::new(id, opacity, value.width, value.height, true)
}
}