On Wed, 8 Jun 2005, Robin wrote: > I've googled about for this but to no avail:
Try search.cpan.org next time :-) > I'm making a perl frontend to a mySQL server to serve up images. Some > of the images are jpegs with keywords stored as comments in the file, > and I want to be able to access those comments through perl. Is there > a module which already exists which does this? Yes: Image::Info. <http://search.cpan.org/~gaas/Image-Info/lib/Image/Info.pm> Quoting from that page... SYNOPSIS use Image::Info qw(image_info dim); my $info = image_info("image.jpg"); if (my $error = $info->{error}) { die "Can't parse image info: $error\n"; } my $color = $info->{color_type}; my($w, $h) = dim($info); Accessing the comment field is a one-line change to this block. Helpful? -- Chris Devers np: 'Everything to Play For' by Douglas Adams from 'H2G2: The Tertiary Phase'