Update of /cvsroot/freevo/freevo/src
In directory sc8-pr-cvs1:/tmp/cvs-serv8207
Modified Files:
osd.py
Log Message:
Index: osd.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/osd.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -C2 -d -r1.19 -r1.20
*** osd.py 1 Mar 2003 17:26:40 -0000 1.19
--- osd.py 1 Mar 2003 17:27:29 -0000 1.20
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.20 2003/03/01 17:27:29 dischi
+ # *** empty log message ***
+ #
# Revision 1.19 2003/03/01 17:26:40 dischi
# _getbitmap now generates and stores thumbnails for large images without
***************
*** 1384,1408 ****
if tmp:
filename = tmp
! elif thumbs_fchksum:
! if os.stat(filename)[stat.ST_SIZE] > 50000:
! thumb = os.path.join('%s/%s.thumb.png' % \
! (config.FREEVO_CACHEDIR,
! fchksum.fmd5t(filename)[0]))
! if not os.path.isfile(thumb):
! # convert with Imaging, pygame doesn't work
! image = Image.open(filename)
! width = 300
! height = 300
! w, h = image.size
! if int(float(width * h) / w) > height:
! width = int(float(height * w) / h)
! else:
! height = int(float(width * h) / w)
! image = image.resize((width, height), Image.BICUBIC)
! image.save(thumb, 'PNG')
!
! filename = thumb
--- 1387,1409 ----
if tmp:
filename = tmp
! elif thumbs_fchksum and os.stat(filename)[stat.ST_SIZE] > 50000:
! thumb = os.path.join('%s/%s.thumb.png' % \
! (config.FREEVO_CACHEDIR,
! fchksum.fmd5t(filename)[0]))
! if not os.path.isfile(thumb):
! # convert with Imaging, pygame doesn't work
! image = Image.open(filename)
! width = 300
! height = 300
! w, h = image.size
! if int(float(width * h) / w) > height:
! width = int(float(height * w) / h)
! else:
! height = int(float(width * h) / w)
! image = image.resize((width, height), Image.BICUBIC)
! image.save(thumb, 'PNG')
! filename = thumb
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog