mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-08-02 01:04:41 +02:00
Uploaded (non secure) attachments live now in public/
That way the attachment files can now be loaded much quicker (without invoking a controller). Also added thumbnailing for pictures in tables.
This commit is contained in:
parent
1b28006267
commit
4fe10b6169
21 changed files with 552 additions and 21 deletions
|
@ -19,4 +19,5 @@ return [
|
|||
Shivas\VersioningBundle\ShivasVersioningBundle::class => ['all' => true],
|
||||
FOS\CKEditorBundle\FOSCKEditorBundle::class => ['all' => true],
|
||||
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
|
||||
Liip\ImagineBundle\LiipImagineBundle::class => ['all' => true],
|
||||
];
|
||||
|
|
20
config/packages/liip_imagine.yaml
Normal file
20
config/packages/liip_imagine.yaml
Normal file
|
@ -0,0 +1,20 @@
|
|||
# See dos how to configure the bundle: https://symfony.com/doc/current/bundles/LiipImagineBundle/basic-usage.html
|
||||
liip_imagine:
|
||||
# valid drivers options include "gd" or "gmagick" or "imagick"
|
||||
driver: "gd"
|
||||
|
||||
filter_sets:
|
||||
thumbnail_sm:
|
||||
quality: 70
|
||||
filters:
|
||||
thumbnail:
|
||||
size: [150, 150]
|
||||
mode: inset
|
||||
|
||||
thumbnail_md:
|
||||
quality: 75
|
||||
filters:
|
||||
filters:
|
||||
thumbnail:
|
||||
size: [300, 300]
|
||||
mode: inset
|
2
config/routes/liip_imagine.yaml
Normal file
2
config/routes/liip_imagine.yaml
Normal file
|
@ -0,0 +1,2 @@
|
|||
_liip_imagine:
|
||||
resource: "@LiipImagineBundle/Resources/config/routing.yaml"
|
|
@ -11,7 +11,7 @@ parameters:
|
|||
banner: '' # The info text shown in the homepage
|
||||
use_gravatar: true # Set to false, if no Gravatar images should be used for user profiles.
|
||||
default_currency: 'EUR' # The currency that should be used
|
||||
media_directory: 'data/media/'
|
||||
media_directory: 'public/media/'
|
||||
db_version_fallback: '5.6' # Be sure to override this, in your .env with your real DB version
|
||||
|
||||
services:
|
||||
|
@ -32,6 +32,9 @@ services:
|
|||
resource: '../src/Controller'
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Liip\ImagineBundle\Service\FilterService:
|
||||
alias: 'liip_imagine.service.filter'
|
||||
|
||||
app.doctrine.elementListener:
|
||||
class: App\Security\EntityListeners\ElementPermissionListener
|
||||
public: false
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue