From: Christian Weiske Date: Fri, 13 Sep 2013 04:50:31 +0000 (+0200) Subject: limit image size in playlist to 400px width X-Git-Url: https://git.cweiske.de/ouya-imagestore.git/commitdiff_plain/f456f09e2154fa159f8a16a1b7142bd9ca603ee3 limit image size in playlist to 400px width --- diff --git a/src/imagestore/Controller/Api/Playlists.php b/src/imagestore/Controller/Api/Playlists.php index ea9d332..effb905 100644 --- a/src/imagestore/Controller/Api/Playlists.php +++ b/src/imagestore/Controller/Api/Playlists.php @@ -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',