public function getResizeToSize()
    {
        $width = $height = 0;

        if (Configure::check('GalleryOptions.Pictures.resize_to.0')) {
            $width = Configure::read('GalleryOptions.Pictures.resize_to.0');
        }

        if (Configure::check('GalleryOptions.Pictures.resize_to.1')) {
            $height = Configure::read('GalleryOptions.Pictures.resize_to.1');
        }

        $crop = Configure::read('GalleryOptions.Pictures.resize_to.2');
        $action = $crop ? "crop" : "";

        return array(
            'width' => $width,
            'height' => $height,
            'action' => $action
        );
    }
public function getResizeToSize()
    {
        $width = $height = 0;

        if (Configure::check('GalleryOptions.Pictures.resize_to.0')) {
            $width = Configure::read('GalleryOptions.Pictures.resize_to.0');
        }

        if (Configure::check('GalleryOptions.Pictures.resize_to.1')) {
            $height = Configure::read('GalleryOptions.Pictures.resize_to.1');
        }

        $crop = Configure::read('GalleryOptions.Pictures.resize_to.2');
        $action = $crop ? "crop" : "";

        return array(
            'width' => $width,
            'height' => $height,
            'action' => $action
        );
    }
public function getResizeToSize ( ) { $ width = $ height = 0 ; if ( Configure :: check ( 'GalleryOptions.Pictures.resize_to.0' ) ) { $ width = Configure :: read ( 'GalleryOptions.Pictures.resize_to.0' ) ; } if ( Configure :: check ( 'GalleryOptions.Pictures.resize_to.1' ) ) { $ height = Configure :: read ( 'GalleryOptions.Pictures.resize_to.1' ) ; } $ crop = Configure :: read ( 'GalleryOptions.Pictures.resize_to.2' ) ; $ action = $ crop ? "crop" : "" ; return array ( 'width' => $ width , 'height' => $ height , 'action' => $ action ) ; }
Return configured main image resize attributes
@return array
Return configured main image resize attributes