Namespaces
Variants
Actions
Revision as of 09:29, 14 June 2012 by hamishwillee (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

How to compress SVG files for use on Symbian

Jump to: navigation, search



Article Metadata

Compatibility
Platform(s): S60 2nd Edition, FP3
S60 3rd Edition

Article
Created: User:Technical writer 2 (13 Oct 2005)
Last edited: hamishwillee (14 Jun 2012)

Overview

How to compress SVG files

Description

Binary-encoding and compressing Scalable Vector Graphics (SVG) image files is possible with the SVGTBINENCODE.EXE utility found in the S60 2nd Edition, Feature Pack 3 SDK (or later).
SVGTBINENCODE usage:

  • Take a back-up copy of your .svg file  - you will overwrite the original with a compressed version that cannot be edited.
  • Copy the source .svg file to a location within the emulator folder structure. For example, to %EPOCROOT%\epoc32\winscw\c\system\temp\
  •  Run the svgtbinencode compression utility. To do this, at the command line type:
    cd %EPOCROOT%\epoc32\release\winscw\udeb svgtbinencode -Dnogui -- c:\system\temp\sourceimage.svg
    This will create a binary-encoded version of the SVG image in the same directory, with .svgb extension.
  • Copy the .svgb file to the folder where your original .svg is stored
  • Delete your original .SVG file because you are about to replace it with the compressed version.
  • Rename the .svgb file to have a .svg extension.
  • Run the MifConv.exe utility for creating a multi-icon file (.MIF). If an extension makefile (icons.mk) is used, this is done automatically during the build process.'
    NOTE: MifConv does not recognize the .svgb extension, but will accept the binary-encoded SVG files after they have been renamed to have the .svg extension.
119 page views in the last 30 days.
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved