Answer the question
In order to leave comments, you need to log in
How to properly use Yii2-imagine (thumbnail method)?
Actually, the point. When using https://github.com/yiisoft/yii2-imagine the page just goes down and doesn't respond.
The code:
use yii\imagine\Image;
....
Image::thumbnail( $path , 250, 250)->save(Yii::getAlias($thumbnail_path), ['quality' => 85]);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question