offset attribute should be set to 0 if it is missing in the stop tag

2020-10-07 Thread Konstantin Bulenkov
Hello everyone, Some time ago, I've submitted a PR at https://github.com/apache/xmlgraphics-batik/pull/20 but had no attention since then. Many modern design tools like Figma and others do not put offset attribute when generating an SVG image if offset equals 0. See

Converting SVG to SVG and replacing viewBox

2021-03-11 Thread Konstantin Bulenkov
Hello everyone, What's a proper way to convert an SVG image file and replace its viewBox size, and then save? For example, loading 32x32 svg file, and save it as 16x16. input: http://www.w3.org/2000/svg;>