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