|
@@ -178,7 +178,7 @@ class Option extends Service
|
|
|
}
|
|
|
protected function actionGetNewPathAndUrl($imageVal, $imgResize, $isWatered = false)
|
|
|
{
|
|
|
- $originImgPath = Yii::$service->image->GetImgDir($this->imageFloder.$str, 'common');
|
|
|
+ $originImgPath = Yii::$service->image->GetImgDir($this->imageFloder.$imageVal, 'common');
|
|
|
// if (!file_exists($originImgPath)) {
|
|
|
// $originImgPath = Yii::$service->image->GetImgDir($this->imageFloder.$str, 'common');;
|
|
|
// }
|
|
@@ -187,8 +187,8 @@ class Option extends Service
|
|
|
if ($newPath && $newUrl) {
|
|
|
if (!file_exists($newPath)) {
|
|
|
$options = [
|
|
|
- 'png_compression_level' => $this->pngCompressionLevel,
|
|
|
- 'jpeg_quality' => $this->jpegQuality,
|
|
|
+ 'png_compression_level' => 8,
|
|
|
+ 'jpeg_quality' => 80,
|
|
|
];
|
|
|
\fec\helpers\CImage::saveResizeMiddleWaterImg($originImgPath, $newPath, $imgResize, $waterImgPath, $options);
|
|
|
}
|