public function generateThumbnail($id, $width, $height = null)
	{
		if ($height === null)
		{
			$height = $width;
		}

		$temp = $this->container->download($id);

		$img = new \Imagick($temp->getPath());
		$img->cropThumbnailImage($width, $height);
		$img->writeImage();

		return $this->container->upload($temp);
	}
public function generateThumbnail($id, $width, $height = null)
	{
		if ($height === null)
		{
			$height = $width;
		}

		$temp = $this->container->download($id);

		$img = new \Imagick($temp->getPath());
		$img->cropThumbnailImage($width, $height);
		$img->writeImage();

		return $this->container->upload($temp);
	}
public function generateThumbnail ( $ id , $ width , $ height = null ) { if ( $ height === null ) { $ height = $ width ; } $ temp = $ this -> container -> download ( $ id ) ; $ img = new \ Imagick ( $ temp -> getPath ( ) ) ; $ img -> cropThumbnailImage ( $ width , $ height ) ; $ img -> writeImage ( ) ; return $ this -> container -> upload ( $ temp ) ; }
Generate a thumbnail from an object and return the ID of the new object.

@param string $id
@param int $width
@param int $height

@return string
Generate a thumbnail from an object and return the ID of the new object .