public function create($image, $thumbnailWidth = 100, $thumbnailHeight = 100)
    {
        $this->setupTargetPath($image);
        $this->setupTargetImage($image);

        $this->transformation->thumbnail(new Image\Box($thumbnailWidth, $thumbnailHeight))
                             ->apply($this->imagine->open($image))
                             ->save($this->thumbnailImage);

        $this->imageSize = getimagesize($this->thumbnailImage);
    }
public function create($image, $thumbnailWidth = 100, $thumbnailHeight = 100)
    {
        $this->setupTargetPath($image);
        $this->setupTargetImage($image);

        $this->transformation->thumbnail(new Image\Box($thumbnailWidth, $thumbnailHeight))
                             ->apply($this->imagine->open($image))
                             ->save($this->thumbnailImage);

        $this->imageSize = getimagesize($this->thumbnailImage);
    }
public function create ( $ image , $ thumbnailWidth = 100 , $ thumbnailHeight = 100 ) { $ this -> setupTargetPath ( $ image ) ; $ this -> setupTargetImage ( $ image ) ; $ this -> transformation -> thumbnail ( new Image \ Box ( $ thumbnailWidth , $ thumbnailHeight ) ) -> apply ( $ this -> imagine -> open ( $ image ) ) -> save ( $ this -> thumbnailImage ) ; $ this -> imageSize = getimagesize ( $ this -> thumbnailImage ) ; }
Creates the thumbnail

@param string $image
@param int    $thumbnailWidth
@param int    $thumbnailHeight
Creates the thumbnail