Author: michael
Date: Fri Jan 15 10:33:25 2010
New Revision: 8356

URL: http://svn.slimdevices.com/jive?rev=8356&view=rev
Log:
Bug: n/a
Description: allow SP defined resizing when fetching image from SBS

Modified:
    
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua

Modified: 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
URL: 
http://svn.slimdevices.com/jive/7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua?rev=8356&r1=8355&r2=8356&view=diff
==============================================================================
--- 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
 (original)
+++ 
7.5/trunk/squeezeplay/src/squeezeplay/share/applets/ImageViewer/ImageSourceServer.lua
 Fri Jan 15 10:33:25 2010
@@ -168,6 +168,9 @@
                -- url on current server
                local server = SlimServer:getCurrentServer()
                
+               -- if an image url has the {resizeParams} placeholder, add 
Squeezebox server resizing parameters
+               urlString = string.gsub(urlString, "{resizeParams}", "_" .. 
screenWidth .. "x" .. screenHeight)
+               
                if server then
                        local ip, port = server:getIpPort()
                        if ip and port then

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/jive-checkins

Reply via email to