|
|
|
@ -75,12 +75,16 @@ class Product extends Model implements HasMedia
|
|
|
|
|
|
|
|
|
|
if (getSetting('watermark')){
|
|
|
|
|
$mc->watermark(public_path('upload/images/logo.png'),
|
|
|
|
|
AlignPosition::BottomLeft,5,5,Unit::Percent,
|
|
|
|
|
15,Unit::Percent,15,Unit::Percent,Fit::Contain,50);
|
|
|
|
|
AlignPosition::BottomLeft, 5, 5, Unit::Percent,
|
|
|
|
|
config('app.media.watermark_size'), Unit::Percent,
|
|
|
|
|
config('app.media.watermark_size'), Unit::Percent, Fit::Contain,
|
|
|
|
|
config('app.media.watermark_opacity'));
|
|
|
|
|
|
|
|
|
|
$mc2->watermark(public_path('upload/images/logo.png'),
|
|
|
|
|
AlignPosition::BottomLeft,5,5,Unit::Percent,
|
|
|
|
|
15,Unit::Percent,15,Unit::Percent,Fit::Contain,50);
|
|
|
|
|
AlignPosition::BottomLeft, 5, 5, Unit::Percent,
|
|
|
|
|
config('app.media.watermark_size'), Unit::Percent,
|
|
|
|
|
config('app.media.watermark_size'), Unit::Percent, Fit::Contain,
|
|
|
|
|
config('app.media.watermark_opacity'));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|