×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Jul 2009
    Posts
    12

    Question Icon (SVG Tiny) Creation Problem

    I use Inkscape to create a SVG from a GIF. The I use the SVG2SVGT program in the S60 SDK to convert it to a SVG tiny. However, when I use py2sis on my .py program I always wind up with the default Python snakes icon. Am I doing something wrong? Is there a detailed guide how to create an icon for SIS files?

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!-- Created with Inkscape (http://www.inkscape.org/) -->
    <svg
    xmlns:svg="http://www.w3.org/2000/svg"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
    version="1.0"
    width="44"
    height="39"
    id="svg2440">
    <defs
    id="defs2443" />
    <image
    xlink:href="C:\Documents and Settings\MyPC\Favorites\Desktop\Logo.gif"
    x="0"
    y="0"
    width="44"
    height="39"
    id="image2449" />
    </svg>

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: Icon (SVG Tiny) Creation Problem

    Have you tried using the SVG, not the SVGT?

    As for the guide, there is one here but I really don't know if it's of any help in this case.

  3. #3
    Registered User
    Join Date
    Apr 2009
    Posts
    16

    Re: Icon (SVG Tiny) Creation Problem

    I don't have a reference for this at hand, but I'm pretty sure that embedding images within a svg is problematic. Here's what I have in my notes about how to create Icons for use in a Listbox. Hope it helps.

    * Create (copy, borrow, steal) svg icon in inkscape and save as plain svg.
    * Two-line Listbox icon need to be 44x44 (Icon should scale but it's better to be safe).
    * Convert to Tiny SVG using SVG2SVGTConverter tool, available inside S60 SDK.
    * Add a viewBox="0 0 44 44" parameter to new .svg file.

    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
    <svg xmlns="http://www.w3.org/2000/svg" baseProfile="tiny" height="44" version="1.0" width="44">
    becomes...
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
    <svg xmlns="http://www.w3.org/2000/svg" baseProfile="tiny" height="44" version="1.0" width="44" viewBox="0 0 44 44">

    * Convert to uncompressed .mif using mifconf, so use the /X option for no compression. /S signifies location of SVGTBinEncode.

    mifconv.exe bluebox.mif /c32 /SC:\svgtools /Hbluebox.mbg /X bluebox.svg

    * When loading an Icon you need to specify its index. You can look up its index in the .mbg file.

    /* This file has been generated, DO NOT MODIFY. */
    enum TMifBluebox
    {
    EMbmBlueboxBluebox = 16384,
    EMbmBlueboxLastElement
    };
    • Load and use the icon
    icon = appuifw2.Icon(u"e:\\Python\\bluebox.mif", 16384, 16384)
    entries = [(u"Bluebox", u"Icon", icon)]
    lb = appuifw2.Listbox(entries)
    appuifw2.app.body = lb

  4. #4
    Regular Contributor
    Join Date
    Apr 2009
    Posts
    65

    Re: Icon (SVG Tiny) Creation Problem

    Create a svg 44x44 icon with Inkscape.
    Convert it with svg-t vector format using the SVG2SVGT tool
    Use Ensymble to make the SIS filw with the icon
    Worked for me. Try clearing the cache by restarting the phone, in case it helps.
    --NirpSis

    http://sites.google.com/site/nirpsis/
    http://nirpsis.blogspot.com/

  5. #5
    Registered User
    Join Date
    Jul 2009
    Posts
    12

    Re: Icon (SVG Tiny) Creation Problem

    Thanks. I gave up trying to convert a GIF into SVG then into SVG tiny, and just drew an image in Inkspace, and converted that into SVG tiny. That seemd to work, but yea, I had to re-start the phone for the icon to appear. But strange thing is, that the icon is in black/white only (?!). I drew it in color. Strange. I never thought something as simple as making an icon could wind up into being such a pain in the...

  6. #6
    Wiki Moderators
    Join Date
    May 2007
    Location
    21.46 N 72.11 E
    Posts
    3,779

    Re: Icon (SVG Tiny) Creation Problem

    Quote Originally Posted by RadioRaider View Post
    Thanks. I gave up trying to convert a GIF into SVG then into SVG tiny, and just drew an image in Inkspace, and converted that into SVG tiny. That seemd to work, but yea, I had to re-start the phone for the icon to appear. But strange thing is, that the icon is in black/white only (?!). I drew it in color. Strange. I never thought something as simple as making an icon could wind up into being such a pain in the...
    You may use Adobe Illustrator CS4, it directly allows you to save to Svg-t (1.2 is what you have to save it for).
    Pankaj Nathani
    www.croozeus.com

  7. #7
    Registered User
    Join Date
    Jul 2009
    Posts
    12

    Re: Icon (SVG Tiny) Creation Problem

    Any idea how to center the icon? It's slightly off to the upper left...
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
    <svg baseProfile="tiny" xmlns="http://www.w3.org/2000/svg" version="1.0" width="44" height="44">
    <defs/>

Similar Threads

  1. Icon Problem
    By srees in forum Symbian
    Replies: 1
    Last Post: 2007-07-27, 07:50
  2. SVG Icon problem for 3rd edition
    By techietintu in forum Symbian
    Replies: 8
    Last Post: 2007-01-12, 12:39
  3. N80 midlet icon problem revisited... questions
    By kounapuu in forum Mobile Java General
    Replies: 1
    Last Post: 2006-10-07, 20:15
  4. Replies: 7
    Last Post: 2006-09-22, 03:27
  5. solution: S60 application icon problem
    By Nokia_Archive in forum Symbian Tools & SDKs
    Replies: 0
    Last Post: 2002-06-03, 02:43

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •