mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 19:43:16 +00:00
Replace calls to mediavorus to getMediaFromUri
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user