public function getDimensions()
    {
        $imageDimension = getimagesize($this->image);

        $width  = $imageDimension[0];
        $height = $imageDimension[1];

        foreach($this->effect as $effect)
        {
            if($effect instanceof PictureEffect)
            {
                $modified = $effect->getNewDimensions($width, $height);

                $width  = $modified['w'];
                $height = $modified['h'];
            }
        }

        return array(

            'w' => $width,
            'h' => $height,
        );
    }
public function getDimensions()
    {
        $imageDimension = getimagesize($this->image);

        $width  = $imageDimension[0];
        $height = $imageDimension[1];

        foreach($this->effect as $effect)
        {
            if($effect instanceof PictureEffect)
            {
                $modified = $effect->getNewDimensions($width, $height);

                $width  = $modified['w'];
                $height = $modified['h'];
            }
        }

        return array(

            'w' => $width,
            'h' => $height,
        );
    }
public function getDimensions ( ) { $ imageDimension = getimagesize ( $ this -> image ) ; $ width = $ imageDimension [ 0 ] ; $ height = $ imageDimension [ 1 ] ; foreach ( $ this -> effect as $ effect ) { if ( $ effect instanceof PictureEffect ) { $ modified = $ effect -> getNewDimensions ( $ width , $ height ) ; $ width = $ modified [ 'w' ] ; $ height = $ modified [ 'h' ] ; } } return array ( 'w' => $ width , 'h' => $ height , ) ; }
Getting new dimensions for applying effects to an image, the image does not save
@return array w,h
Getting new dimensions for applying effects to an image the image does not save