Skip to content

AutoResize plugin not working #277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
NodokaMurmevent opened this issue Feb 21, 2017 · 3 comments
Closed

AutoResize plugin not working #277

NodokaMurmevent opened this issue Feb 21, 2017 · 3 comments

Comments

@NodokaMurmevent
Copy link
Contributor

Issue Type:
  • Bug Report
Version:

Bundle version : 6.x
Symfony version : 3.2.4

Summary:

i have enable AutoResize but nothing work (see configuration below)

Steps To Reproduce:

Just upload an image, i have try with this image :
https://www.pexels.com/photo/city-continent-country-destination-269790/

Expected Results:

resized image at 1920 x 1080 maximum

Actual Results:

my image are not resize
result

Configuration
fm_elfinder:
    instances:
        ckeditor:
            locale: "%locale%"
            editor: ckeditor
            fullscreen: true
            include_assets: true
            connector:
                debug: true
                binds:
                    upload.presave:
                        - Plugin.AutoResize.onUpLoadPreSave
                plugins:
                    AutoResize: # global resize options, applies to root which don't have his own resize configuraion
                        enable: true
                        maxWidth: 1920
                        maxHeight: 1080
                        quality: 95 # JPEG image save quality
                roots:
                    uploads:
                        driver:           LocalFileSystem
                        path:             uploads/
                        plugins:
                            AutoResize:
                                enable: true
                                maxWidth: 1920
                                maxHeight: 1080
                                quality: 95
                        upload_allow:     ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'application/zip', 'audio/mpeg', 'text/csv', 'video/mp4', 'video/webm', 'application/pdf']
                        upload_deny:      ['all']
                        upload_max_size:  32M
        simple:
            locale: "%locale%"
            editor: simple            
            include_assets: true
            connector:
                debug: true # defaults to false
                binds:
                    upload.presave:
                        - Plugin.AutoResize.onUpLoadPreSave    
                plugins:
                    AutoResize:
                        enable: true 
                        maxWidth: 1920 
                        maxHeight: 1080 
                        quality: 95
                roots:       
                    uploads:
                        driver: LocalFileSystem
                        path: uploads
                        plugins:
                            AutoResize:
                                enable: true
                                maxWidth: 1920
                                maxHeight: 1080
                                quality: 95
                        upload_allow:     ['image/png', 'image/jpg', 'image/jpeg', 'image/gif', 'application/zip', 'audio/mpeg', 'text/csv', 'video/mp4', 'video/webm', 'application/pdf']
                        upload_deny: ['all']
                        upload_max_size: 32M
@NodokaMurmevent
Copy link
Contributor Author

Nobody have a solution ?

@helios-ag
Copy link
Owner

@NodokaMurmevent just reviewed this issue, can you update deps, i tagged lib as https://github.com/helios-ag/ElFinderPHP/releases/tag/2.5.6

@NodokaMurmevent
Copy link
Contributor Author

I have updated my deps and it's work ! Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants