diff --git a/crates/usvgr/src/parser/clippath.rs b/crates/usvgr/src/parser/clippath.rs index ff4bad914..cc6be0e74 100644 --- a/crates/usvgr/src/parser/clippath.rs +++ b/crates/usvgr/src/parser/clippath.rs @@ -44,7 +44,11 @@ pub(crate) fn convert( let object_bbox = match object_bbox { Some(v) => v, None => { - log::warn!("Clipping of zero-sized shapes is not allowed."); + log::warn!( + "Clip path '{}' cannot be applied to a zero-sized element \ + (it uses objectBoundingBox units). Skipped.", + node.element_id() + ); return None; } }; diff --git a/crates/usvgr/src/parser/mask.rs b/crates/usvgr/src/parser/mask.rs index f3b114dbc..7967a753f 100644 --- a/crates/usvgr/src/parser/mask.rs +++ b/crates/usvgr/src/parser/mask.rs @@ -113,7 +113,11 @@ pub(crate) fn convert( let object_bbox = match object_bbox { Some(v) => v, None => { - log::warn!("Masking of zero-sized shapes is not allowed."); + log::warn!( + "Mask '{}' cannot be applied to a zero-sized element \ + (its content uses objectBoundingBox units). Skipped.", + node.element_id() + ); return None; } };