mirror of
https://github.com/penpot/penpot.git
synced 2025-07-19 11:47:24 +02:00
🐛 Fix keep aspect ratio support
This commit is contained in:
parent
327db5a1a3
commit
c7c8e91183
4 changed files with 52 additions and 26 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue