I have appended the diff to this message. All I did was to comment out
the line that sets the Exif.Image.Make field to "jBrout" as that's what
jBrout subsequently uses to flag the image as not 'real' (and gives it
red margins).
I have not commented out the writing of the Exif.Image.DateTime,
Exif.Photo.DateTimeOriginal, or Exif.Photo.DateTimeDigitized fields
though this might be a good idea. Unless *something* is written to the
Exif.Photo.DateTimeOriginal field jBrout will do the same again though.
*** tools.py 2012-10-15 17:20:38.892550799 +0100
--- /tmp/tools.py 2012-10-16 10:11:33.221163456 +0100
***************
*** 193,213 ****
isDateExifOk=True
except AttributeError: # content of tag exif DateTimeOriginal is not a datetime
isDateExifOk=False
else: # tag exif DateTimeOriginal not present
isDateExifOk=False
if not isDateExifOk:
self.debug( "*WARNING* File %s had wrong exif date -> corrected" % file )
fd=datetime.fromtimestamp(os.stat(file).st_mtime)
! # self.__info["Exif.Image.Make"]="jBrout" # mark exif made by jbrout
self.__info["Exif.Image.DateTime"]=fd
self.__info["Exif.Photo.DateTimeOriginal"]=fd
self.__info["Exif.Photo.DateTimeDigitized"]=fd
self.__info.writeMetadata()
#exifdate = self.__info["Exif.Image.DateTime"]
exifdate = self.__info["Exif.Photo.DateTimeOriginal"]
#-----------------------------------------------------------
# try to autorot, if wanted
--- 193,213 ----
isDateExifOk=True
except AttributeError: # content of tag exif DateTimeOriginal is not a datetime
isDateExifOk=False
else: # tag exif DateTimeOriginal not present
isDateExifOk=False
if not isDateExifOk:
self.debug( "*WARNING* File %s had wrong exif date -> corrected" % file )
fd=datetime.fromtimestamp(os.stat(file).st_mtime)
! self.__info["Exif.Image.Make"]="jBrout" # mark exif made by jbrout
self.__info["Exif.Image.DateTime"]=fd
self.__info["Exif.Photo.DateTimeOriginal"]=fd
self.__info["Exif.Photo.DateTimeDigitized"]=fd
self.__info.writeMetadata()
#exifdate = self.__info["Exif.Image.DateTime"]
exifdate = self.__info["Exif.Photo.DateTimeOriginal"]
#-----------------------------------------------------------
# try to autorot, if wanted
--
Chris Green