[英]Batik Rasterizer logo watermark remove from genereated image
Anyone know how to remove the Batik logo from the generated images? 有人知道如何从生成的图像中删除蜡染徽标吗? I'm trying the examples on their page http://xmlgraphics.apache.org/batik/tools/rasterizer.html
我正在尝试在其页面上的示例http://xmlgraphics.apache.org/batik/tools/rasterizer.html
This is the source svg image https://bitbucket.org/llythiumn/cmput206/src/912d7681375d/batik-1.7/samples/barChart.svg?at=Ian2 这是源svg图像https://bitbucket.org/llythiumn/cmput206/src/912d7681375d/batik-1.7/samples/barChart.svg?at=Ian2
This is the Java line I'm running to convert the svg to a png image java -jar batik-rasterizer.jar -m image/png samples/barChart.svg 这是我正在运行的Java行,用于将svg转换为png图像java -jar batik-rasterizer.jar -m image / png样本/barChart.svg
And this is what the generated image looks like with the logo at the bottom http://svn.apache.org/repos/asf/xmlgraphics/batik/tags/batik-1_0beta2/test-references/samples/barChart.png 这就是生成的图像的样子,底部的徽标为http://svn.apache.org/repos/asf/xmlgraphics/batik/tags/batik-1_0beta2/test-references/samples/barChart.png
Perhaps its simple but I just can't find the option to remove it. 也许它很简单,但是我找不到删除它的选项。 Any suggestions would be appreciated.
任何建议,将不胜感激。
The watermark is in the source image . 水印在 源图像中 。 If you don't supply a source image with a watermark you won't get one in the output.
如果您不提供带有水印的源图像,那么输出中将不会得到图像。
Found it. 找到了。 I guess I should have tested it with svg files other than the ones batik provided.
我想我应该用提供的蜡染以外的svg文件测试它。 It seems that the Batik SVG examples come with a tag that forces the logo watermark.
Batik SVG示例似乎带有一个用于强制徽标水印的标签。 But it only does it when generating the image.
但是它仅在生成图像时才这样做。 Opening the svg image in a browser doesn't show the logo.
在浏览器中打开svg图像不会显示徽标。
I tried it with other svg files from here and it worked fine. 我从这里尝试了其他svg文件,效果很好。 http://dev.w3.org/SVG/tools/svgweb/samples/svg-files
http://dev.w3.org/SVG/tools/svgweb/samples/svg-files
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.