09/06/2010, 05:19 AM
This is a perl script I wrote to automate mucking about with multi-image 01-12.bmp's, since I tend to prefer my own wallpapers but still want waves and such. It's a commandline utility that automagically extracts jpegs and records their padded lengths, then adds the correct padding when rebuilding. I'm aware of other utilities out there but the one I have tried didn't work, and is a gui app which I tend to loathe.
Usage is as such:
extracting
0112arc.pl -e 01-12.bmp
0112arc.pl -e 01-12.bmp imagedir
Now the images can be replaced with anything of the same size or smaller.
packing
0112arc.pl -c /psp/ctf/fnord/vsh/resources/01-12.bmp /some/other/dir
The directory can be left off and it will assume that it's BMPFILE-out. You will need an existing multi-image 01-12.bmp to extract. I have included a sample with 30 images, each allowed 32725 bytes.
If you're on windows without perl and wish to use this, see http://strawberryperl.com/releases.html and look for the portable version.
todo (maybe)
png support
option to set the image sizes by reading vshmain.prx
option to set the image size -in- vshmain.prx
Usage is as such:
extracting
0112arc.pl -e 01-12.bmp
0112arc.pl -e 01-12.bmp imagedir
Now the images can be replaced with anything of the same size or smaller.
packing
0112arc.pl -c /psp/ctf/fnord/vsh/resources/01-12.bmp /some/other/dir
The directory can be left off and it will assume that it's BMPFILE-out. You will need an existing multi-image 01-12.bmp to extract. I have included a sample with 30 images, each allowed 32725 bytes.
If you're on windows without perl and wish to use this, see http://strawberryperl.com/releases.html and look for the portable version.
todo (maybe)
png support
option to set the image sizes by reading vshmain.prx
option to set the image size -in- vshmain.prx