mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-10 00:34:50 +00:00
Update Image util
This commit is contained in:
parent
3e5af1b98a
commit
bd7cad9984
1 changed files with 3 additions and 2 deletions
|
@ -110,14 +110,15 @@ class Image
|
|||
$orientation = $ratio['orientation'];
|
||||
|
||||
try {
|
||||
$img = Intervention::make($file)->orientate();
|
||||
$img = Intervention::make($file);
|
||||
$metadata = $img->exif();
|
||||
$img->orientate();
|
||||
if($thumbnail) {
|
||||
$img->resize($aspect['width'], $aspect['height'], function ($constraint) {
|
||||
$constraint->aspectRatio();
|
||||
});
|
||||
} else {
|
||||
if(config('media.exif.database', false) == true) {
|
||||
$metadata = $img->exif();
|
||||
$media->metadata = json_encode($metadata);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue