I have hacked up a script to convert jpegs for the JuiceBox.
It requires that you have ImageMagick installed as it uses the convert command.
You will also need a copy of the 24to12.pl script.
I wrote this to convert files that are exported from iPhoto on my powerbook, hence the capital letters in the JPG file extension.
It converts a whole directory of any size files, copies them to your SD cartridge and cleans up after itself.
When it is finished it unmounts the cart so you can yank it and stick it in your JB.
This forum kills the indentation so you'll have to add that back in again.
Enjoy,
ml
#! /bin/sh
for thefile in *.JPG ; do
FILE=`echo $thefile | cut -d. -f 1 -`
if [ -r $FILE.jbp ] ; then
echo "Converted file found, no need to convert this one."
else
echo "Converting $thefile"
convert -size 240x160 $thefile -resize 240x160! rgb:$FILE.rgb
24to12.pl $FILE.rgb $FILE.jbp
rm $FILE.rgb
fi
done
volume=`disktool -l | grep msdos | cut -d\' -f 2 -`
name=`disktool -l | grep msdos | cut -d\' -f 4 - | cut -d/ -f 3 -`
if [ $volume ] && [ $name ]; then
echo "located volume $volume" with name $name
mv *.jbp /Volumes/$name
disktool -e $volume
else
echo "Can't find memory card, insert card and run this again!"
exit 1
fi
Good judgement comes from experience. . .
Experience comes from bad judgement.