You can replace this with 

```php
use MediaVorus\Media\Media;

$image = $Core['mediavorus']->guess($subdef->get_pathfile());
if (Media::TYPE_IMAGE === $image->getType()) {
    // One of MediaVorus\Media\Image::ORIENTATION_* constants
    $orientation = $image->getOrientation();
}
```

see https://github.com/romainneutron/MediaVorus/blob/0.1.3/src/MediaVorus/Media/Image.php