View Single Post
Old 06-05-2005, 09:10 AM   #25
Bokky
Low Bitrate
 
Bokky's Avatar
 
Join Date: Jan 2005
Location: Ham, Belgium
Vehicle: 2004 Audi A2
Posts: 76
My Photos: ()
Quote: Originally Posted by veetid
Wondering if someone might have already written a program I had in mind. It would rock to have a program that you could simply point at a 848x480 skin and have it automatically generate the 800x600 stretched. It wouldn't be hard, just haven't had the time. It would just need to go through all the images and resize them propertionally. Then go through the XML skin file and adjust all the X, Y, Widths, and Heights propertionally using the ratio from 848x480 to 800x600.

Let me know if someone has written something like this or wants to

david

Because there is not much action for this I decided to spend a bit of my precious time to write a script for the XML conversion. It only does the XML file not the images, this is just an initial version and it is not state of the art programming (I'm not a full time programmer). Hardly any error checking is done and XML parsing is not done like it should be ( I only spend 30min on it to write it) but the script works perfect on David's skin.xml files.
You can convert to any size of skin, just fill in the desired WxH.

If there is need for a more advanced version I willing to spend some time to write a small webpage where you can upload your skin files (images and xml) and convert it on the page. But first I have to see what CF1.3 skins will do.
The script is written in perl and should work on all platforms (Linux, Windows, Mac...). Yes it is perl cause I am a Linux user but my CarPC is still windows

You can dowload it here: CF-skinresizer-0.1.zip

usage:
-unzip
-perl CF-skinresizer-0.1.pl skin.xml newskin.xml
-Fill in the original resolutions and desired resolutions and go....
__________________
EPIA M10K, 512MB RAM, 60GB
[##########] 100% (since 1 March 2005)

snowboarding.be - bokky.com

Last edited by Bokky; 06-06-2005 at 03:16 AM.
Bokky is offline   Reply With Quote