×
Namespaces

Variants
Actions

How to compress SVG files for use on Symbian

From Nokia Developer Wiki
Jump to: navigation, search

Archived.pngArchived: This article is archived because it is not considered relevant for third-party developers creating commercial solutions today. If you think this article is still relevant, let us know by adding the template {{ReviewForRemovalFromArchive|user=~~~~|write your reason here}}.

The article is believed to be still valid for the original topic scope.

Article Metadata
Compatibility
Platform(s): S60 2nd Edition, FP3
S60 3rd Edition
S60 3rd Edition (initial release)
S60 2nd Edition (initial release)
Article
Created: User:Technical writer 2 (13 Oct 2005)
Last edited: lpvalente (11 Jun 2014)

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.
This page was last modified on 11 June 2014, at 17:13.
55 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×