protected function getResourceDimensions(InterventionImage $resource)
    {
        /** @var Size $size */
        $size = $resource->getSize();
        return [
            $size->getWidth(),
            $size->getHeight()
        ];
    }
protected function getResourceDimensions(InterventionImage $resource)
    {
        /** @var Size $size */
        $size = $resource->getSize();
        return [
            $size->getWidth(),
            $size->getHeight()
        ];
    }
protected function getResourceDimensions ( InterventionImage $ resource ) { /** @var Size $size */ $ size = $ resource -> getSize ( ) ; return [ $ size -> getWidth ( ) , $ size -> getHeight ( ) ] ; }
Get dimensions from the given resource

@param InterventionImage $resource
@return array
Get dimensions from the given resource