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