Hello, I am creating a thumbnail using imagine, this works great, but now I need customize the file extension (not png, or jpg)
I am getting this error:
This my code:
Image::getImagine()
->open(Yii::getAlias('@webroot') . "/assets/avatars/" . $file->baseName . $file->extension . "-big.")
->thumbnail(new Box(50, 50))
->save(Yii::getAlias('@webroot') . "/assets/avatars/" . $file->baseName . $file->extension . "-small." ,
['quality' => 90]);
I understand that I can only have jpg, jpeg, gif or png but can I customize or change these values in the options array? I dont know that key-value pairs have to use, I dont found in the official docs too. Thanks
/**
* Saves the image at a specified path, the target file extension is used
* to determine file format, only jpg, jpeg, gif, png, wbmp and xbm are
* supported
*
* @param string $path
* @param array $options
*
* @throws RuntimeException
*
* @return ManipulatorInterface
*/
public function save($path, array $options = array());