mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
photo upload optimizations
This commit is contained in:
parent
05e54a0453
commit
9a4d68b207
@ -4,22 +4,29 @@ return [
|
|||||||
'monitoring' => [
|
'monitoring' => [
|
||||||
'stacked' => true,
|
'stacked' => true,
|
||||||
'tabs' => [
|
'tabs' => [
|
||||||
|
|
||||||
|
|
||||||
'general' => [
|
'general' => [
|
||||||
'title' => 'visiosoft.module.advs::section.general',
|
'title' => 'visiosoft.module.advs::section.general',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'iban_numbers', 'google_statistic_code', 'ogImage', 'free_currencyconverterapi_key',
|
'iban_numbers',
|
||||||
|
'google_statistic_code',
|
||||||
|
'ogImage',
|
||||||
|
'free_currencyconverterapi_key',
|
||||||
'enabled_currencies'
|
'enabled_currencies'
|
||||||
|
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
'ads' => [
|
'ads' => [
|
||||||
'title' => 'visiosoft.module.advs::section.ads',
|
'title' => 'visiosoft.module.advs::section.ads',
|
||||||
'fields' => [
|
'fields' => [
|
||||||
'latest-limit', 'auto_approve', 'default_published_time', 'default_adv_limit', 'default_GET',
|
'latest-limit',
|
||||||
'watermark_type', 'watermark_text', 'watermark_image', 'watermark_position', 'watermark_opacity',
|
'auto_approve',
|
||||||
|
'default_published_time',
|
||||||
|
'default_adv_limit',
|
||||||
|
'default_GET',
|
||||||
|
'watermark_type',
|
||||||
|
'watermark_text',
|
||||||
|
'watermark_image',
|
||||||
|
'watermark_position',
|
||||||
|
'watermark_opacity',
|
||||||
'listing_page_image',
|
'listing_page_image',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|||||||
@ -1,15 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
|
|
||||||
'register_email_field' => [
|
'register_email_field' => [
|
||||||
'type' => 'anomaly.field_type.boolean',
|
'type' => 'anomaly.field_type.boolean',
|
||||||
'config' => [
|
'config' => [
|
||||||
'default_value' => true,
|
'default_value' => true,
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
'latest-limit' => [
|
'latest-limit' => [
|
||||||
'type' => 'anomaly.field_type.integer',
|
'type' => 'anomaly.field_type.integer',
|
||||||
'config' => [
|
'config' => [
|
||||||
@ -124,7 +121,8 @@ return [
|
|||||||
'env' => 'ADV_WATERMARK_POSITION',
|
'env' => 'ADV_WATERMARK_POSITION',
|
||||||
'required' => true,
|
'required' => true,
|
||||||
'config' => [
|
'config' => [
|
||||||
'options' => ['top-right' => 'Top Right', 'top-left' => 'Top Left', 'bottom-right' => 'Bottom Right', 'bottom-left' => 'Bottom Left', 'center' => 'Middle'],
|
'options' => ['top-right' => 'Top Right', 'top-left' => 'Top Left', 'bottom-right' => 'Bottom Right',
|
||||||
|
'bottom-left' => 'Bottom Left', 'center' => 'Middle'],
|
||||||
'default_value' => 'top-right',
|
'default_value' => 'top-right',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
@ -146,7 +144,6 @@ return [
|
|||||||
'mode' => 'upload',
|
'mode' => 'upload',
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
|
|
||||||
'enabled_currencies' => [
|
'enabled_currencies' => [
|
||||||
'bind' => 'streams::currencies.enabled',
|
'bind' => 'streams::currencies.enabled',
|
||||||
'env' => 'ADV_ENABLED_CURRENCIES',
|
'env' => 'ADV_ENABLED_CURRENCIES',
|
||||||
|
|||||||
@ -50,4 +50,8 @@
|
|||||||
padding: 5px;
|
padding: 5px;
|
||||||
margin: 10px;
|
margin: 10px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.img-thumbnail {
|
||||||
|
padding: 0;
|
||||||
}
|
}
|
||||||
@ -16,8 +16,8 @@ $(function () {
|
|||||||
var dropzone = new Dropzone('.dropzone:not(data-initialized)',
|
var dropzone = new Dropzone('.dropzone:not(data-initialized)',
|
||||||
{
|
{
|
||||||
paramName: 'upload',
|
paramName: 'upload',
|
||||||
resizeWidth: 1920,
|
resizeWidth: 800,
|
||||||
resizeHeight: 1920,
|
resizeHeight: 600,
|
||||||
autoProcessQueue: true,
|
autoProcessQueue: true,
|
||||||
parallelUploads: 1,
|
parallelUploads: 1,
|
||||||
resizeMethod: 'contain',
|
resizeMethod: 'contain',
|
||||||
|
|||||||
@ -61,7 +61,8 @@ class UploadController extends AdminController
|
|||||||
$position = $settings->value('visiosoft.module.advs::watermark_position');
|
$position = $settings->value('visiosoft.module.advs::watermark_position');
|
||||||
|
|
||||||
$img = WaterMark::make($this->request->file('upload')->getRealPath())
|
$img = WaterMark::make($this->request->file('upload')->getRealPath())
|
||||||
->resizeCanvas(800, 600, 'center', false, '464646');
|
->resize( null,600)
|
||||||
|
->resizeCanvas(800, 600, 'center', false, 'fff');
|
||||||
if ($watermarktype == 'image') {
|
if ($watermarktype == 'image') {
|
||||||
|
|
||||||
$watermarkimage_id = $settings->value('visiosoft.module.advs::watermark_image');
|
$watermarkimage_id = $settings->value('visiosoft.module.advs::watermark_image');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user