<image> with nonexistent file should not abort all rendering
This came out of openclipart; https://packages.ubuntu.com/source/bionic/openclipart has a tarball with the SVG files.
The file above doesn't render; rsvg-convert exits with "invalid href".
This happens here:
<image height="301" i:alphaIsShape="yes" i:knockout="Off" id="XMLID_1_" opacity="0.75" width="251" xlink:href="F9596C75.png"/>
That PNG is nonexistent, and this code in image.rs:
let surface = if let Some(Href::PlainUrl(ref url)) = self.href {
dc.lookup_image(&url)?
} else {
return Ok(dc.empty_bbox());
};
returns from lookup_image
with the InvalidHref. In this case we should just return an empty bounding box and probably log a message.
(feImage doesn't have the problem because it translates that error into FilterError)