getImageGeometry(); } catch (\ImagickException $e) { //do nothing } // resize to thumbnail // $image->thumbnailImage(200, 200); // $thumbPath = 'public/images/' . $imageId . '-thumb.' . $ext; // Storage::put($thumbPath , $image->getImageBlob()); return [ 'url' => asset($relativeUrl), 'id' => $imageId, ...$resolution, // todo - size, width, height, thumb, etc ]; } }