I am trying to create a style for opencpn using only svg graphics. The problem is, the svg graphics created with gimp or other programs don't display. The smaller svg files don't seem to work, but the huge ones (which would be smaller in png) are working.
Have you created svg icons with Inkscape - taking it as a reference?
What is "small" for you? The same icon just with different sizes, so same description, just different scale(d) x/y points?
what I see in your two files is a Raster image embedded in svg.
Does that make sense?
What one would expect is a vector drawing which you can export then as a rasterized icon - Inkscape does that perfectly. However the nice thing for different screen sizes and resolutions is to work with vector as it is scalable. An embedded raster will not scale (or better, will getting blurred).
As an example the master as svg vector from Inkscape, a screenshot and then two exports with 99x70 and 48x30px
Sean...
Hubert is of course correct - creating SVG files containing just a bitmap makes absolutely no sense. We are definitely not using SVG to decrease size here, but to improve quality at high resolution without having to have several bitmap files.
Once the SVG file is vector, there are a few tricks to make it smaller, as tools like Inkscape or Illustrator tend to fill it with useless junk.
Once the SVG file is vector, there are a few tricks to make it smaller, as tools like Inkscape or Illustrator tend to fill it with useless junk.
Pavel
Yes, especially the headers contain al lot of "backward compatibility".
And by the way: all modern browser do open svg files directly.
A quick way to test how they look and feel when designing.
what I see in your two files is a Raster image embedded in svg.
Does that make sense?
Why can inkscape not vectorize my bitmap drawing? Why doesn't wxsvg support embedded raster images?
Quote:
Originally Posted by nohal
Sean...
Hubert is of course correct - creating SVG files containing just a bitmap makes absolutely no sense.
I agree in theory, but I want all my icons all in separate files, and somehow opencpn first searches for an svg file with the same name, then it will look in a single png file which I don't want to deal with. If I could have separate png files it would be ok...
Add 2 testing toolbar icons (cairo does not like SVG files optimized with svgo and scour, but we should definitely investigate further as they save 80-90% of the size in comparison with SVGs saved by Inkscape)
Why can inkscape not vectorize my bitmap drawing? Why doesn't wxsvg support embedded raster images?
Because it simply does not work well enough - it of course is possible to vectorize bitmaps, but the results are terrible most of the time.
Quote:
I agree in theory, but I want all my icons all in separate files, and somehow opencpn first searches for an svg file with the same name, then it will look in a single png file which I don't want to deal with. If I could have separate png files it would be ok...