Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Build WPS for multiple targets from SVG
« previous next »
  • Print
Pages: [1]

Author Topic: Build WPS for multiple targets from SVG  (Read 1420 times)

Offline submersible_toaster

  • Member
  • *
  • Posts: 4
Build WPS for multiple targets from SVG
« on: April 07, 2007, 04:17:54 AM »
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
Logged

Offline bluebrother

  • Developer
  • Member
  • *
  • Posts: 3421
  • creature
Re: Build WPS for multiple targets from SVG
« Reply #1 on: April 07, 2007, 05:20:18 AM »
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.
Logged
Rockbox Utility development binaries (updated infrequently) · How to ask questions the smart way · We do not estimate timeframes.

Offline submersible_toaster

  • Member
  • *
  • Posts: 4
Re: Build WPS for multiple targets from SVG
« Reply #2 on: April 07, 2007, 05:32:05 AM »
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..
Logged

Offline submersible_toaster

  • Member
  • *
  • Posts: 4
Re: Build WPS for multiple targets from SVG
« Reply #3 on: April 07, 2007, 07:07:09 AM »
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
Logged

Offline submersible_toaster

  • Member
  • *
  • Posts: 4
Re: Build WPS for multiple targets from SVG
« Reply #4 on: April 07, 2007, 07:16:10 AM »
And the SVG they were built from.

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

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Theming and Appearance Customization
| | |-+  Build WPS for multiple targets from SVG
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.063 seconds with 15 queries.