Create a nice SVG icon from a bitmap and use it in your Symbian app: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 14: Line 14:


# Find a bitmap of at least 400×400px of what you want as the icon
# Find a bitmap of at least 400×400px of what you want as the icon
# Crop and clean in "Gimp":http://www.gimp.org/ (or whatever you use)
# Crop and clean in "Gimp":http://www.gimp.org/ (or whatever you use)
# Open "Inkscape":http://inkscape.org/
# Open "Inkscape":http://inkscape.org/
# Open your bitmap (embed or link doesn’t really matter)
# Open your bitmap (embed or link doesn’t really matter)
# Select the bitmap with the cursor
# Select the bitmap with the cursor
# Open '''Path > Trace bitmap'''
# Open '''Path > Trace bitmap'''
# Select '''Colors''' in the Multiple scans option
# Select '''Colors''' in the Multiple scans option
# Play around with the '''Scans''' value and click '''Update'''
# Play around with the '''Scans''' value and click '''Update'''

Revision as of 14:33, 24 February 2015

English Spanish Italian

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

Scalable Vector Graphics

Scalable Vector Graphics (SVG) is a family of specifications of an XML-based file format for describing two-dimensional vector graphics which are used for icons of Symbian applications. SVG specification is an open standard which is maintained by World Wide Web Consortium (W3C).

HowTo

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×400px of what you want as the icon
  2. Crop and clean in "Gimp":http://www.gimp.org/ (or whatever you use)
  3. Open "Inkscape":http://inkscape.org/
  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. Convert it with S60tools/svg2svgt
  14. Point out the file in your .pro file by adding ICON = myapp.svg where myapp.svg is your svg icon
  15. Run qmake again and compile a new .sis
  16. Install and enjoy