|
From: Paolo <bac...@ti...> - 2004-10-03 21:53:06
|
Hi, i download PyAlbum and try it, very great job, is exactly what i
need, but i have a question:
why extract exif data even if html will not be regenerated?
In module AlbumImage.py the handlePic() method call
AlbumEXIF.EXIFMapper() to extract exif data in any case taking long time
if there are a lot of images.
Why not put a control to generate exif only if html picture pages will
be generated?
here is a possible patch, there is some side effects doing so?
--- AlbumImage-orig.py 2004-04-04 13:04:18.000000000 +0200
+++ AlbumImage.py 2004-10-03 23:44:16.302274776 +0200
@@ -155,8 +155,9 @@
self.orig = PicInfo(self.fullInPath, self.img)
# get exif information
- self.exif = AlbumEXIF.EXIFMapper(self.img, self.fullInPath, self.options, self.gal.focalLengthHandler)
-
+ if self.gal.rebuildAnything:
+ self.exif = AlbumEXIF.EXIFMapper(self.img, self.fullInPath, self.options, self.gal.focalLengthHandler)
+
self.lastModified = os.path.getmtime(self.fullInPath)
dtf = self.options.dateformat+" "+self.options.timeformat
dtf = dtf.strip() # case only one given...
tanks, Paolo.
|