Otouto / gulp-raster

gulp task for conversion svg to raster
MIT License
18 stars 16 forks source link

Support viewbox attribute #6

Open thasmo opened 9 years ago

thasmo commented 9 years ago

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.

bm2u commented 9 years ago

+1