Mail Index
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ApacheGallery] representation of Aperture
I noticed, that representation of Aperture wasn't "nice" when pictures
came from a Olympus camera.
It seems that some Camera's have both a 'AperturValue' and 'FNumber'
EXIF tag. But Olympus camera's only have a 'FNumber' tag.
The following will correct that.
--- blib/lib/Apache/Gallery.pm Mon Apr 21 13:26:51 2003
+++ /usr/local/lib/perl5/site_perl/5.6.1/Apache/Gallery.pm Fri Aug
1 08:15:57 2003
@@ -806,7 +806,7 @@
}
}
}
- if ($exif_key eq 'ApertureValue') {
+ if ($exif_key eq 'ApertureValue' || $exif_key eq 'FNumber') {
if ($value =~ /^(\d+)\/(\d+)$/) {
$value = eval { $1 / $2 };
if ($@) {
--
Don't waste space