--- ImageArchive/ImageArchive.py 2006/05/22 20:20:17 1.91 +++ ImageArchive/ImageArchive.py 2006/05/22 21:09:53 1.92 @@ -25,7 +25,7 @@ import Queue import cgi import sys import zLOG - +import shutil from AccessControl import ClassSecurityInfo, getSecurityManager @@ -515,8 +515,13 @@ class ImageDigilib(Folder,Persistent,Imp zLOG.LOG("ImageArchive:scaleToJpg", zLOG.ERROR, "%s "%newName) return False - - + ext= os.path.splitext(imagePath)[1].lower() + if ext.rstrip()==".jpg": + shutil.copy(newName,imagePath) + print "copy",imagePath + return True + + print "SCALED",imagePath dest="/Volumes/paviaExtern/docuserver/images/exhibitionImages/" dir=self.getId() src=path