|
|
@ -3668,13 +3668,13 @@ class InsurerController extends BaseController |
|
|
|
['quality' => 100]);//生成缩略图的质量 |
|
|
|
['quality' => 100]);//生成缩略图的质量 |
|
|
|
//图片打水印 |
|
|
|
//图片打水印 |
|
|
|
$bianhao = '券号:' . $bianhao; |
|
|
|
$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)); |
|
|
|
->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)); |
|
|
|
->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)); |
|
|
|
->save(Yii::getAlias($imgstr)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|