Support and General Use > Theming and Appearance Customization

Build WPS for multiple targets from SVG

(1/1)

submersible_toaster:
Hi All,
After some months of fooling around with ipl , I switched to rockbox and am never going back  ;)
The WPS customization capabilites are quite impressive and I set about building my first one this weekend. In the process I managed to hack together some perl and inkscape to generate images and WPS from an inkscape svg. It takes some of the pain out of carving up images and getting offsets correct. With a little more tweaking it could probably be made to build themes for multiple targets from a single SVG (provided targets are same aspect I suppose).

If this generates any interest I would be happy to post the code.

-toaster

bluebrother:
Sounds really interesting to me -- but how do you deal with the line based appropach for the text on the wps? If this could create multiple target themes from a single svg this might be really helpful.

submersible_toaster:
Presently - I dont :)
The script is an afternoon hack so I can concentrate on fooling around in inkscape rather than exporting and cropping. I've invented some very basic grammar for the SVG layer naming which I guess could be extended somehow to hint at a font height.

The tricky part is to recalculate the target dpi based on the native SVG resolution. I have built a ipod nano theme 176x132 , to export for ipod video 320x240 , we fudge the DPI calculation as a ratio 176/320 * nativeDPI . Inkscape uses 90 as its native dpi. This gives us a dpi of 163.636363.....

hmm let me try..

submersible_toaster:
Just too big for uploading here. :(

This is the original work - exported at ipod nano size
http://www.friendsofmymum.com/~toaster/myblue-nano.zip

Here is the same fudged for 320x240
http://www.friendsofmymum.com/~toaster/myblue-video.zip

Both use rockbox_default font which probably looks strange.

The bits used to build from SVG;

Inkscape 0.45.1 (Mar 21 2007)
ImageMagick 6.2.3
perl , SVG SVG::Parser SVG::DOM

submersible_toaster:
And the SVG they were built from.

http://www.friendsofmymum.com/~toaster/myblue.svg

Navigation

[0] Message Index

Go to full version