Author: duncan
Date: Fri Jan 12 20:18:16 2007
New Revision: 8968
Modified:
branches/rel-1/freevo/src/www/htdocs/library.rpy
branches/rel-1/freevo/src/www/web_types.py
Log:
Change to use the cached data instead of opening images
This has made a considerable difference to the loading of pages
Patch from Chandan applied
Modified: branches/rel-1/freevo/src/www/htdocs/library.rpy
==============================================================================
--- branches/rel-1/freevo/src/www/htdocs/library.rpy (original)
+++ branches/rel-1/freevo/src/www/htdocs/library.rpy Fri Jan 12 20:18:16 2007
@@ -483,8 +483,7 @@
if not os.path.exists(scaled_image_path):
size = util.create_www_thumbnail(item)
else:
- size = imlib2.open(item).size
- print 'DJW:size:',size, 'w:', info['width'],
'h:',info['height']
+ size = (info['width'], info['height'])
image_link = self.convert_dir(filepath)
scaled_image_link = self.convert_dir(scaled_image_path)
fv.tableCell('<div class="image"><a
href="javascript:openfoto(\''+image_link+'\','+str(size[0])+','+str(size[1])+')">'\
Modified: branches/rel-1/freevo/src/www/web_types.py
==============================================================================
--- branches/rel-1/freevo/src/www/web_types.py (original)
+++ branches/rel-1/freevo/src/www/web_types.py Fri Jan 12 20:18:16 2007
@@ -569,10 +569,6 @@
</script>
<br />
<table border="0" cellspacing="0" cellpadding="0" class="remote">
- <tr><td class="remote"><button class="remote" accesskey="p"
onClick="send_code('PLAY');">PLAY</button></td>
- <td class="remote"><button class="remote" accesskey="u"
onClick="send_code('PAUSE');">PAUSE</button></td>
- <td class="remote"><button class="remote" accesskey="s"
onClick="send_code('STOP');">STOP</button></td>
- </tr>
<tr><td colspan="3" align="center"><a
href="javascript:openremote()">Freevo WebRemote</a></td></tr>
</table>
"""
-------------------------------------------------------------------------
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