How to compress SVG files for use on Symbian
How to compress SVG files
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).
- 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.