Update of /cvsroot/freevo/freevo/src/util
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7838/src/util
Modified Files:
fileops.py
Log Message:
wrap exif call inside the try except
Index: fileops.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/util/fileops.py,v
retrieving revision 1.21
retrieving revision 1.22
diff -C2 -d -r1.21 -r1.22
*** fileops.py 13 Jun 2004 18:49:39 -0000 1.21
--- fileops.py 21 Jun 2004 12:00:56 -0000 1.22
***************
*** 11,14 ****
--- 11,17 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.22 2004/06/21 12:00:56 dischi
+ # wrap exif call inside the try except
+ #
# Revision 1.21 2004/06/13 18:49:39 dischi
# do not take care of install.py
***************
*** 491,505 ****
if not image:
if __freevo_app__ == 'main':
! f=open(filename, 'rb')
! tags=exif.process_file(f)
! f.close()
!
! if tags.has_key('JPEGThumbnail'):
! try:
image = Image.open(cStringIO.StringIO(tags['JPEGThumbnail']))
! except Exception, e:
! print 'Error loading thumbnail %s' % filename
! if config.DEBUG:
! print e
if not image or image.size[0] < 100 or image.size[1] < 100:
--- 494,508 ----
if not image:
if __freevo_app__ == 'main':
! try:
! f=open(filename, 'rb')
! tags=exif.process_file(f)
! f.close()
!
! if tags.has_key('JPEGThumbnail'):
image = Image.open(cStringIO.StringIO(tags['JPEGThumbnail']))
! except Exception, e:
! print 'Error loading thumbnail %s' % filename
! if config.DEBUG:
! print e
if not image or image.size[0] < 100 or image.size[1] < 100:
-------------------------------------------------------
This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference
Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer
Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA
REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog