SVG icon - questions
| Mon, 2007-06-18 17:53 | |
|
Hi I have some unresolved issues , Please advice: 2) How can I make the Icon appear on the SDK emulator? 3) I tried in many different ways (including editing an existing SVG) to create the SVG from an existing BMP file (or JPG) file. Thank you very much |
|






Forum posts: 2006
Open your svg file with any text editor, locate the <svg> tag and add a:
viewBox="0 0 your_icon width your icon_height"I generally add this just after the width and height parameters. The value above assumes that (0,0) is the corner of your icon, if not, adjust the coordinates accordingly.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 145
Thanks Eric
I created several SVG's .
in some the "viewBox" parameter existed and seems to be ok,
but still the icon didn't appear.
I also tried adding this parameter,but no change
Forum posts: 2006
Two other things:
- you need to save the icon in plain SVG, not Inkscape SVG
- and finally you need to convert it into SVG-Tiny using the SVG2SVGT tool that is shipped with your SDK.
Have you done this as well ?
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 145
Hi Eric
I managed to convert a bitmap to SVG using SVG factory.
this created a SVG which looks empty if I open it with inkscape but looks good on device.
It appears on device even without the SVG2SVGT tool.
please tell me,
why is the svg-tiny so important?
and how do I know that I created a SVG-tiny and not just a SVG? (the extension is SVG on both , right?)
Thank you very much!
Forum posts: 2006
SVG Tiny (SVGT) is just a subset of SVG. Converting to SVGT ensure that :
- unsupported nodes are not in your file
- your file will be rendered equally on your pc and device.
If you just make simple graphic, converting to SVGT can be optionnal (however, you end up with smaller file as Inkscape and Illustrator put some extra information in the file.
And yes, the extension is the same.
Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant
Forum posts: 145
Thanks again eric!
Forum posts: 2
What if you are using Adobe Illustrator? What are the steps to save/convert properly for use in S60 devices?