R
R
RR2015-03-17 15:33:25
Yii
RR, 2015-03-17 15:33:25

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]);

The file is found (tried to substitute the wrong path, gives an error), but somewhere it freezes and as a result: Web page is not available
Yii debugger does not write anything, as if the page did not even try to open.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question