Replace calls to mediavorus to getMediaFromUri

This commit is contained in:
Benoît Burnichon
2015-05-12 18:12:02 +02:00
parent 81e8fcb606
commit 61206fd517
15 changed files with 40 additions and 41 deletions

View File

@@ -66,7 +66,7 @@ class appbox extends base
//resize collection logo
$imageSpec = new ImageSpecification();
$media = $this->app['mediavorus']->guess($filename);
$media = $this->app->getMediaFromUri($filename);
if ($media->getWidth() > 120 || $media->getHeight() > 24) {
$imageSpec->setResizeMode(ImageSpecification::RESIZE_MODE_INBOUND_FIXEDRATIO);