limit image size in playlist to 400px width
authorChristian Weiske <cweiske@cweiske.de>
Fri, 13 Sep 2013 04:50:31 +0000 (06:50 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Fri, 13 Sep 2013 04:50:31 +0000 (06:50 +0200)
src/imagestore/Controller/Api/Playlists.php

index ea9d332..effb905 100644 (file)
@@ -43,7 +43,8 @@ class Controller_Api_Playlists extends Controller_Api_ImageBase
                 );
                 $playlists->games[] = (object) array(
                     'content_rating' => 'Everyone', 
-                    'image'   => $this->getImageUrl($this->getFirstImage($dirInfo)),
+                    'image'   => $this->getImageUrl($this->getFirstImage($dirInfo))
+                        . '&w=400',
                     'title'   => basename($dirInfo->getPathname()), 
                     'uuid'    =>  $uuid,
                     'version' => '11111111-0000-1111-0000-111111111111',