I have the code:
use yii\imagine\Image;
use Imagine\Image\Box;
...
$path = Yii::getAlias('@app'). '/temp';
Image::frame($path . '/1.jpg')->thumbnail(new Box(200, 200))->save($path . '/2.jpg', ['quality' => 100]);
Original image: 1.jpg
and result: 2.jpg
The result have the white border. How is disable border?
If there is no way to disable border, how do change without circumcision and keeping the aspect ratio?
Thanks you!