gulp-svg2png supports the viewbox attribute additionally, if the width and height attributes are missing on the svg element and it would be nice if gulp-raster also supports it, to render correctly sized PNG files. Currently the generated PNG image has wrong dimensions if the width and height attributes are missing. I guess it would also be nice to have a configuration for this to disable/enable it when needed, individually.
gulp-svg2png
supports theviewbox
attribute additionally, if thewidth
andheight
attributes are missing on thesvg
element and it would be nice ifgulp-raster
also supports it, to render correctly sized PNG files. Currently the generated PNG image has wrong dimensions if thewidth
andheight
attributes are missing. I guess it would also be nice to have a configuration for this to disable/enable it when needed, individually.