mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
Merge pull request #325 from openclassify/fatih3
photo upload optimizations
This commit is contained in:
commit
6ada9f19a1
@ -26,7 +26,6 @@ return [
|
||||
'watermark_text',
|
||||
'watermark_image',
|
||||
'watermark_position',
|
||||
'watermark_opacity',
|
||||
'listing_page_image',
|
||||
],
|
||||
],
|
||||
|
||||
@ -126,14 +126,6 @@ return [
|
||||
'default_value' => 'top-right',
|
||||
]
|
||||
],
|
||||
'watermark_opacity' => [
|
||||
'type' => 'anomaly.field_type.text',
|
||||
'bind' => 'adv.watermark_opacity',
|
||||
'env' => 'ADV_WATERMARK_OPACITY',
|
||||
'config' => [
|
||||
'default_value' => '80',
|
||||
],
|
||||
],
|
||||
|
||||
'listing_page_image' => [
|
||||
'type' => 'anomaly.field_type.file',
|
||||
|
||||
@ -98,9 +98,6 @@ return [
|
||||
'watermark_position' => [
|
||||
'name' => 'موقف العلامة المائية',
|
||||
],
|
||||
'watermark_opacity' => [
|
||||
'name' => 'عتامة العلامة المائية',
|
||||
],
|
||||
'listing_page_image' => [
|
||||
'name' => 'سرد صورة الصفحة',
|
||||
],
|
||||
|
||||
@ -115,10 +115,6 @@
|
||||
"watermark_position" => [
|
||||
"name" =>"Wasserzeichen Position",
|
||||
|
||||
],
|
||||
"watermark_opacity" => [
|
||||
"name" =>"Wasserzeichen Deckkraft",
|
||||
|
||||
],
|
||||
"listing_page_image" => [
|
||||
"name" =>"Listing Page Image",
|
||||
|
||||
@ -115,10 +115,6 @@
|
||||
"watermark_position" => [
|
||||
"name" =>"Θέση υδατοσήματος",
|
||||
|
||||
],
|
||||
"watermark_opacity" => [
|
||||
"name" =>"Αδιαφάνεια του υδατογραφήματος",
|
||||
|
||||
],
|
||||
"listing_page_image" => [
|
||||
"name" =>"Λίστα εικόνων σελίδας",
|
||||
|
||||
@ -95,9 +95,6 @@ return [
|
||||
'watermark_position' => [
|
||||
'name' => 'Watermark Position',
|
||||
],
|
||||
'watermark_opacity' => [
|
||||
'name' => 'Watermark Opacity',
|
||||
],
|
||||
'listing_page_image' => [
|
||||
'name' => 'Listing Page Image',
|
||||
],
|
||||
|
||||
@ -95,9 +95,6 @@ return [
|
||||
'watermark_position' => [
|
||||
'name' => 'Filigran Konumu',
|
||||
],
|
||||
'watermark_opacity' => [
|
||||
'name' => 'Filigran Opaklığı',
|
||||
],
|
||||
'listing_page_image' => [
|
||||
'name' => 'Sayfa Resmi Listeleme',
|
||||
],
|
||||
|
||||
@ -69,8 +69,7 @@ class UploadController extends AdminController
|
||||
$watermarkimage = $files->find($watermarkimage_id);
|
||||
$w = $img->width();
|
||||
if ($watermarkimage != null) {
|
||||
$watermark = WaterMark::make(app_storage_path() . '/files-module/local/' . $watermarkimage->path())
|
||||
->opacity($settings->value('visiosoft.module.advs::watermark_opacity'));
|
||||
$watermark = WaterMark::make(app_storage_path() . '/files-module/local/' . $watermarkimage->path());
|
||||
$img->insert($watermark, $position);
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user