Images embedded in svg are broken into une circle per pixell
Posted: 2014-06-09T14:40:04-07:00
Steps to reproduce:
1) convert someimage.png output.svg
or
2) convert somepdf.pdf output.svg
where the pdf contains embedded images.
Expected: the image/s should be embedded in the svg in the form <image xlink:href="data:image/png;base64,iVBORw0KGgo........" etc>
Observed: every pixel of the image is converted into a circle of 1px diameter. EVEN in the case of the pdf. if the images are not very tiny, you end up with a gigantic svg file.
Compare this to the behavior of Inkscape: if you import an image into inkscape and save as svg, the image is embedded as expected. And if you import a pdf into inkscape and save as svg, too.
Breaking the image into per-pixel 1-px circles may be an interesting possibility to have available as an option, but it shouldn't be the default behavior, it's insane in most cases.
1) convert someimage.png output.svg
or
2) convert somepdf.pdf output.svg
where the pdf contains embedded images.
Expected: the image/s should be embedded in the svg in the form <image xlink:href="data:image/png;base64,iVBORw0KGgo........" etc>
Observed: every pixel of the image is converted into a circle of 1px diameter. EVEN in the case of the pdf. if the images are not very tiny, you end up with a gigantic svg file.
Compare this to the behavior of Inkscape: if you import an image into inkscape and save as svg, the image is embedded as expected. And if you import a pdf into inkscape and save as svg, too.
Breaking the image into per-pixel 1-px circles may be an interesting possibility to have available as an option, but it shouldn't be the default behavior, it's insane in most cases.