Adds a zero check for image.width() or image.height() to avoid encoding zero-dimension images from SVGs that have relative width/height dimensions and viewBox values that result in a smaller-than 1x1 pixel ratio.
Also removes node 4 + 6 from travis, tests with 8 + 10
What changed?
Adds a zero check for
image.width()
orimage.height()
to avoid encoding zero-dimension images from SVGs that have relative width/height dimensions and viewBox values that result in a smaller-than 1x1 pixel ratio.Also removes node 4 + 6 from travis, tests with 8 + 10
cc @ian29 @artemp