protected function getDimensions(UploadedFileInterface $upload)
    {
        $dimension = getimagesize($upload->getStream()->getMetadata('uri'));

        return [
            'width'  => $dimension[ 0 ],
            'height' => $dimension[ 1 ]
        ];
    }
protected function getDimensions(UploadedFileInterface $upload)
    {
        $dimension = getimagesize($upload->getStream()->getMetadata('uri'));

        return [
            'width'  => $dimension[ 0 ],
            'height' => $dimension[ 1 ]
        ];
    }
protected function getDimensions ( UploadedFileInterface $ upload ) { $ dimension = getimagesize ( $ upload -> getStream ( ) -> getMetadata ( 'uri' ) ) ; return [ 'width' => $ dimension [ 0 ] , 'height' => $ dimension [ 1 ] ] ; }
Retourne les dimensions d'une image.

@param UploadedFileInterface $upload Image

@return int[] Dimensions
Retourne les dimensions d une image .