更新生成位置

dev
曾超新 5 years ago
parent 0488b0481f
commit 2d28f7e320
  1. 6
      frontend/controllers/InsurerController.php

@ -3668,13 +3668,13 @@ class InsurerController extends BaseController
['quality' => 100]);//生成缩略图的质量
//图片打水印
$bianhao = '券号:' . $bianhao;
\yii\imagine\Image::text($liquanSrc, $bianhao, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [325, 85], ['color' => 'ffffff', 'size' => 14])
\yii\imagine\Image::text($liquanSrc, $bianhao, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [27, 25], ['color' => '000000', 'size' => 14])
->save(Yii::getAlias($imgstr));
\yii\imagine\Image::text($imgstr, $car_no, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [900, 400], ['color' => 'ffffff', 'size' => 16])
\yii\imagine\Image::text($imgstr, $car_no, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [425, 222], ['color' => '000000', 'size' => 16])
->save(Yii::getAlias($imgstr));
$panduan = \yii\imagine\Image::text($imgstr, $endDate, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [850, 440], ['color' => 'ffffff', 'size' => 16])
$panduan = \yii\imagine\Image::text($imgstr, $endDate, Yii::getAlias('@frontend/web/fonts/msyh.ttc'), [425, 245], ['color' => '000000', 'size' => 16])
->save(Yii::getAlias($imgstr));
}

Loading…
Cancel
Save