Variables: an image variable keeps the object's bounds with the Placement Options API on main (#1908)

This commit is contained in:
bflatastic
2026-10-16 04:50:07 +07:00
parent 699856f7d5
commit a38c824066
+1 -1
View File
@@ -486,7 +486,7 @@ pub(crate) fn set_image_from_path(d: &mut Document, id: NodeId, path: &str) -> R
let path = absolute_path(path);
let bytes = read_file(&path)?;
let read = (link_info(&path, &bytes), fileio::raster_image(&bytes)?);
install(d, &[id], read, true)
install(d, &[id], read, Some(Preserve::Bounds))
}
/// Image objects `ids` show the file read for `link` (`img`), each placed as its Placement