classes/BannerImage.php
protected function getImageSizeInternal($BannerImage)
	{
	    try 
	    {
	        $arrImageSize = getimagesize(TL_ROOT . '/' . $BannerImage);
	    } 
	    catch (\Exception $e) 
	    {
	        $arrImageSize = false;
	    }		
		
		if ($arrImageSize === false)
		{
		    //Workaround for PHP without zlib on SWC files
		    $arrImageSize = $this->getImageSizeCompressed($BannerImage);
		}
		ModuleBannerLog::writeLog(__METHOD__ , __LINE__ , 'Image Size: '. print_r($arrImageSize,true));
		
		return $arrImageSize;
	}
protected function getImageSizeInternal($BannerImage)
	{
	    try 
	    {
	        $arrImageSize = getimagesize(TL_ROOT . '/' . $BannerImage);
	    } 
	    catch (\Exception $e) 
	    {
	        $arrImageSize = false;
	    }		
		
		if ($arrImageSize === false)
		{
		    //Workaround for PHP without zlib on SWC files
		    $arrImageSize = $this->getImageSizeCompressed($BannerImage);
		}
		ModuleBannerLog::writeLog(__METHOD__ , __LINE__ , 'Image Size: '. print_r($arrImageSize,true));
		
		return $arrImageSize;
	}
protected function getImageSizeInternal ( $ BannerImage ) { try { $ arrImageSize = getimagesize ( TL_ROOT . '/' . $ BannerImage ) ; } catch ( \ Exception $ e ) { $ arrImageSize = false ; } if ( $ arrImageSize === false ) { //Workaround for PHP without zlib on SWC files $ arrImageSize = $ this -> getImageSizeCompressed ( $ BannerImage ) ; } ModuleBannerLog :: writeLog ( __METHOD__ , __LINE__ , 'Image Size: ' . print_r ( $ arrImageSize , true ) ) ; return $ arrImageSize ; }
Get the size of an internal image

@param	string	$BannerImage	Image path
@return	mixed	$array / false
Get the size of an internal image