I'm using my hacked IA-1 as a "picture frame". I've written a small perl script to resize any new photos (less than 1 day old) from my photo directory (on my big linux box) using ImageMagick down to a size suitable for the IA-1 (800x600). If anyone's interested, here's the code:
#!/usr/bin/perl -w
eval 'exec /usr/bin/perl -S $0 ${1+"$@"}'
if 0; #$running_under_some_shell
use strict;
use File::Find ();
# Set the variable $File::Find::dont_use_nlink if you're using AFS,
# since AFS cheats.
# for the convenience of &wanted calls, including -eval statements:
use vars qw/*name *dir *prune/;
*name = *File::Find::name;
*dir = *File::Find::dir;
*prune = *File::Find::prune;
sub wanted;
# Traverse desired filesystems
File::Find::find({wanted => \&wanted}, '/big/photos/fotki.com/');
exit;
sub wanted {
return if $name !~ /^.*\.jpg\z/s;
my ($dev,$ino,$mode,$nlink,$uid,$gid) = lstat($name);
return if int(-M _) >= 1;
(my $newname = $name) =~ s!(.*/(.*))\.jpg!/big/photos/compaq_ia-1/$2_th.jpg!;
system("convert -compress JPEG -sample 800x600 -quality 50 $name $newname");
utime((stat($name))[8,9], $newname);
1;
}
I then copy the jpg's to a CompactFlash card, which I mount on the IA-1. The following simple script rotate's through the images:
#!/bin/sh
while [ 1 ]; do
for i in *_th.jpg; do
xli -onroot -fullscreen $i > /dev/null 2>&1
sleep 15
done
done
However, here's my problem: When the CF card is formatted as FAT, I can only get about 10 MB of files onto it (I've tried both a 32MB & 128MB CF cards). After formatting (using W2K), the OS shows the proper amount of free "disk" space, it's simply that the copy fails partway through. Even after the copy fails, the OS shows 10MB used and ~20 MB or ~110 MB free!!! This occurs whether I use drag and drop or xcopy.
If instead I format the CF card as FAT32, both cards properly copy all the files I've got (over 200, taking up 15 MB). However, when I try to boot the IA-1 with the FAT32 card in place, the boot locks up after the initial ".........................".
I thought FAT16 could go well over 10MB, am I missing something here?
- Robert
P.S. I've also tried two different CF readers, and 3 different PC's!!