This commit is contained in:
Qiang Xue
2014-01-01 20:28:31 -05:00
parent 00b403fcc2
commit 3ccf099bc2

View File

@@ -16,8 +16,8 @@ namespace yii\imagine;
* // thumb - saved on runtime path * // thumb - saved on runtime path
* $imagePath = Yii::$app->getBasePath() . '/web/img/test-image.jpg'; * $imagePath = Yii::$app->getBasePath() . '/web/img/test-image.jpg';
* $runtimePath = Yii::$app->getRuntimePath(); * $runtimePath = Yii::$app->getRuntimePath();
* Image::thumb('@app/web/img/test-image.jpg', 120, 120) * Image::thumbnail('@app/web/img/test-image.jpg', 120, 120)
* ->save('@runtime/thumb-test-image.jpg', ['quality' => 50]); * ->save('thumb-test-image.jpg', ['quality' => 50]);
* ~~~ * ~~~
* *
* @author Antonio Ramirez <amigo.cobos@gmail.com> * @author Antonio Ramirez <amigo.cobos@gmail.com>