You Are Here:

Community: Wiki

This page was last modified on 31 October 2008, at 12:36.

TSS000295 - How to compress SVG files

From Forum Nokia Wiki


ID TSS000295 Creation date October 13, 2005
Platform S60 2nd Edition, FP3
S60 3rd Edition
Devices
Category Symbian C++ Subcategory Multimedia


Keywords (APIs, classes, methods, functions):

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.

Related Wiki Articles

No related wiki articles found

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
User Rating: qfnZuserE5FratingQNx5E2E0000X