Author: duncan
Date: Thu Jan 4 05:30:43 2007
New Revision: 8924
Modified:
branches/rel-1/freevo/src/util/fileops.py
Log:
Added cache_www_image_size function
Modified: branches/rel-1/freevo/src/util/fileops.py
==============================================================================
--- branches/rel-1/freevo/src/util/fileops.py (original)
+++ branches/rel-1/freevo/src/util/fileops.py Thu Jan 4 05:30:43 2007
@@ -581,3 +581,11 @@
thumb = image.scale_preserve_aspect(config.WWW_IMAGE_THUMBNAIL_SIZE)
thumb.save(thumb_path)
return thumb.size
+
+
+def cache_www_image_size(filename):
+ '''returns the size from a webserver cached image.
+ '''
+ thumb_path = cache_www_thumbnail_path(filename)
+ image = imlib2.open(filename)
+ return image.size
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-cvslog mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog