pub(crate) fn load_sub_svg(data: &[u8], opt: &Options<'_>) -> Option<ImageKind>
Expand description
Tries to load the ImageData
content as an SVG image.
Unlike Tree::from_*
methods, this one will also remove all image
elements
from the loaded SVG, as required by the spec.