forked from leftypol/leftypol
MediaHandler: update
This commit is contained in:
parent
dd788acaf0
commit
573c8e2fb6
4 changed files with 16 additions and 16 deletions
|
@ -2,7 +2,7 @@
|
|||
namespace Vichan\Service\Media;
|
||||
|
||||
use Vichan\Data\{Exif, ImageMetadata};
|
||||
use Vichan\Functions\Mime;
|
||||
use Vichan\Functions\Metadata;
|
||||
|
||||
|
||||
class CmdMagickImageMetadataReader {
|
||||
|
@ -63,7 +63,7 @@ class CmdMagickImageMetadataReader {
|
|||
$ext = $m[3];
|
||||
$orientation_str = $m[4];
|
||||
|
||||
$mime = Mime\ext_to_mime($ext) ?? 'application/octet-stream';
|
||||
$mime = Metadata\ext_to_mime($ext) ?? 'application/octet-stream';
|
||||
$exif_orientation = self::parseOrientation($orientation_str);
|
||||
return new ImageMetadata($width, $height, $mime, $exif_orientation);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue