November 17, 2010

snowpong snowpong
Lab Rat
54 posts

HowTo: Create a nice SVG icon from a bitmap and use it in your Symbian app

Page  
1

Thought this might be usefull for some of you. This one assumes you do NOT have access to a nice .svg, but needs to create one from a bitmap. Note: make sure you’ve got the rights for it – don’t steal.

  1. Find a bitmap of at least 400×400 of what you want as the icon
  2. Crop and clean in Gimp (or whatever you use)
  3. Open Inkscape
  4. Open your bitmap (embed or link doesn’t really matter)
  5. Select the bitmap with the cursor
  6. Open “Path->Trace bitmap”
  7. Select “Colors” in the Multiple scans option
  8. Play around with the “Scans” value and click “Update”
  9. Once happy click “Ok” and close the dialog
  10. Move the new traced bitmap away, and delete the actual bitmap underneath it
  11. Make a square with rounded corners and put it below the traced bitmap
  12. Save the .svg
  13. In your .pro file add “ICON = myapp.svg”
  14. run qmake again and compile a new .sis
  15. install and enjoy

You don’t get perfect results, but it’s OK as a start :)

24 replies

November 17, 2010

Antonio Di Monaco Antonio Di Monaco
Lab Rat
113 posts

Well,

you’ve also this [leonardorisuleo.info] method, that’s the one I’m using now.

You can use a simple PNG, and get a SVG icon for your app.

T.

November 17, 2010

snowpong snowpong
Lab Rat
54 posts

Cool.

What are smart sizes for the PNG so it doesn’t get stretched for Symbian^1 and Symbian^3? 88×88?

November 17, 2010

Antonio Di Monaco Antonio Di Monaco
Lab Rat
113 posts

Frankly speaking, I don’t know … I’ve created my PNG using 48×48 pixels, and it’s fine.

T.

November 17, 2010

snowpong snowpong
Lab Rat
54 posts

Pixel perfect fine, or just OK? I hate badly scaled pixmaps with aliasing :)

November 17, 2010

Antonio Di Monaco Antonio Di Monaco
Lab Rat
113 posts

I’m sorry, snowpong, I haven’t experienced it so deeply ..

I have a N95 8Gb, and my icon is never scaled (AFAIK) …

November 17, 2010

raghava.chinnappa raghava.chin..
Lab Rat
21 posts

These are specification of the default Icons get created with QtCreator

For Symbian app
————————-
file-type: SVG
resolution: 44×44

For Maemo app
————————-
file-type: PNG
resolution: 64×64

November 18, 2010

beardog beardog
Lab Rat
3 posts

WTF? You’ll need SVG-T for symbian applications, and Inkscape is NOT able to save files in that format

December 7, 2010

snowpong snowpong
Lab Rat
54 posts
beardog wrote:
WTF? You’ll need SVG-T for symbian applications, and Inkscape is NOT able to save files in that format

Settle down there doggy :) If you keep within a limited set of Inkscape and save as plain SVG, it can be used. So for example this works ok:

  • Open PNG in Inkscape
  • Save as Plain SVG
  • Use as app icon in .pro file

Is is also smart to keep the width/height of the PNG divisable by 8 (sic!), or it may be scaled wrong and the icon looks like garbage…

December 8, 2010

johnk johnk
Lab Rat
56 posts

SVG-t has been part of Symbian since 3rd edition circa 2005. Since it first ship the have always provided a command to convert an SVG file to SVG-t. At the moment, I have the 5th edition SDK on my PC. I see an installer for it under S60tools/svg2svgt.

-jk

December 8, 2010

xsacha xsacha
Ant Farmer
517 posts

Adobe Illustrator has no problems creating SVG-T.
There’s a few revs of this and of course Tiny 1.1+ looks best.

 Signature 

- Sacha

December 8, 2010

snowpong snowpong
Lab Rat
54 posts

johnk wrote:
SVG-t has been part of Symbian since 3rd edition circa 2005. Since it first ship the have always provided a command to convert an SVG file to SVG-t. At the moment, I have the 5th edition SDK on my PC. I see an installer for it under S60tools/svg2svgt.

-jk

Yeah, and since then it’s been basically broken [gnugos60.blogspot.com] ? :) There is one thing getting something as an icon, then there is getting something that looks nice. Have you used this converter with success?

December 8, 2010

snowpong snowpong
Lab Rat
54 posts
xsacha wrote:
Adobe Illustrator has no problems creating SVG-T. There’s a few revs of this and of course Tiny 1.1+ looks best.

Yeah, that seems to be the best end option. It costs lost of $$$ though.

After having experimented a bit more, it seems designing in Inkscape and then saving as “Optimized SVG” might be the best solution I’ve found so far (excluding Illustrator of course).

December 18, 2010

johnk johnk
Lab Rat
56 posts

Hello,

In a previous comment, I mentioned S60tools/svg2svgt. Turns out it fails to install on Windows 7 with “The installer cannot run on your configuration. It will now quit.” The installer ZeroG failed with a NullPointerException. I have reported it as bug 16189 [bugreports.qt.nokia.com]

-jk

December 19, 2010

Vass Vass
Gene Splicer
710 posts

johnk, I voted for your bug.

 Signature 


Vasiliy

December 19, 2010

Vass Vass
Gene Splicer
710 posts

snowpong, It’s look as good wiki page, I created it here [developer.qt.nokia.com]. Please check.

 Signature 


Vasiliy

Page  
1

  ‹‹ Qt Mobility Location API & Nokia N900 Speed Accuracy Issue      pkg_prerules for smartinstaller wrapper package ››

You must log in to post a reply. Not a member yet? Register here!