Skip to content

Image compression #380

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
napestershine opened this issue Jan 12, 2020 · 6 comments
Closed

Image compression #380

napestershine opened this issue Jan 12, 2020 · 6 comments

Comments

@napestershine
Copy link
Contributor

HI

Thanks so much for this great bundle.

I am trying to find documentation for compressing image before uploading. Is there any way I can hook this
https://tinypng.com/developers/reference/php

Workflow that I can imagine is: Open Ckeditor, select an image, it starts uploading and before uploading it compresses and upload to S3. And Ckeditor get S3 url.

Any help will be greatly appreciated.

Thanks

@helios-ag
Copy link
Owner

elFinder mostly rely on server side interactions (so im not sure if its possible to compress files before uploading), one way to do so is to utilize it's ability to work with plugins, look at https://github.com/Studio-42/elFinder/tree/master/php/plugins, for examples

@napestershine
Copy link
Contributor Author

Can I tweak any Events ?

@helios-ag
Copy link
Owner

You can listen to bundle events

@napestershine
Copy link
Contributor Author

I will try them out.

@napestershine
Copy link
Contributor Author

@helios-ag Do you have any sample code where these events have been used ? It will really help out the further implementation

@helios-ag
Copy link
Owner

Unfortunately i haven't used event system with the bundle.

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