I would like to recommend svg-edit to Fritzing users (www.fritzing.org) for
creating custom part svgs, but there is one issue in the way. It is important
that these images are given a size in real-world units, and while it is
possible to specify the units in svg-edit using Editor Options, the coordinates
of all the internal svg elements remain at 96dpi.
As it stands (AFAICT), Fritzing would have no way to correctly map the internal
coordinates back to their true (real world) locations because it doesn't "know"
that 96dpi is the conversion factor. However, if a viewBox attribute was added
to svg-edit images, then that would define the mapping. For example, when
setting the canvas size to 3 inches by 1 inch, the viewBox attribute would be
viewBox="0 0 288 96".
I believe it would do no harm to always include a viewBox attribute--if the
user keeps the original pixel coordinates, the viewBox would just be one-to-one
(for example, the viewBox for the default 640x480 canvas would just be
viewBox="0 0 640 480").
Thanks.
Original issue reported on code.google.com by irasc...@gmail.com on 11 Aug 2013 at 7:14
Original issue reported on code.google.com by
irasc...@gmail.com
on 11 Aug 2013 at 7:14