From 3ccf099bc24d1953b64ac58b23e66434e1505d5b Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 1 Jan 2014 20:28:31 -0500 Subject: [PATCH] doc fix. --- extensions/yii/imagine/Image.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extensions/yii/imagine/Image.php b/extensions/yii/imagine/Image.php index 9d9706affe..3a2d3001e4 100644 --- a/extensions/yii/imagine/Image.php +++ b/extensions/yii/imagine/Image.php @@ -16,8 +16,8 @@ namespace yii\imagine; * // thumb - saved on runtime path * $imagePath = Yii::$app->getBasePath() . '/web/img/test-image.jpg'; * $runtimePath = Yii::$app->getRuntimePath(); - * Image::thumb('@app/web/img/test-image.jpg', 120, 120) - * ->save('@runtime/thumb-test-image.jpg', ['quality' => 50]); + * Image::thumbnail('@app/web/img/test-image.jpg', 120, 120) + * ->save('thumb-test-image.jpg', ['quality' => 50]); * ~~~ * * @author Antonio Ramirez