Skip to content
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

Client-side downsizing of images before uploading #37

Open
inreti-sb opened this issue Jan 19, 2015 · 3 comments
Open

Client-side downsizing of images before uploading #37

inreti-sb opened this issue Jan 19, 2015 · 3 comments

Comments

@inreti-sb
Copy link
Contributor

Regularly clients try to upload source image files with 2-10 MB.
This often breaks the upload process and frustates clients and developer.

It would be nice to automatically downsize images due to an adjustable system settings.

Advantages:

  • less upload-abortions
  • faster upload
  • less unnecessary webspace and hence smaller and faster website/server backups :)
@JensWolff
Copy link

+1 GREAT!!
@inreti-sb Here is a plugin-code which renames and reduces the filesize of images AFTER uploading:
http://www.forum.jolichter.de/index.php?topic=228.0
I've extended it so that it also shrinks down the images to a specific max-width, but I'm not shure if it still works with MODX 2.3.X - but it's better than nothing for the start - and perhaps something we could build on.

@Mark-H
Copy link

Mark-H commented Jan 19, 2015

One problem with resizing images that size client side is needing to load
the entire image into the browsers memory.. Slow browsers especially will
not like that.

Same thing is true when doing it server side though, so it's probably a
case of figuring out which one deals with it best?
Op 19 jan. 2015 17:32 schreef "Sebastian Burchert" <notifications@github.com

:

Regularly clients try to upload source image files with 2-10 MB.
This often breaks the upload process and frustates clients and developer.

It would be nice to automatically downsize images due to an adjustable
system settings.

Advantages:

  • less upload-abortions
  • faster upload
  • less unnecessary webspace and hence smaller and faster backups :)


Reply to this email directly or view it on GitHub
#37.

@wuuti
Copy link

wuuti commented Jan 29, 2015

We adressed this before for the MultiUploadDialog extra, which supports drag and drop: thomasd/MultiUploadDialog#4
This uses the FileAPI which is also capable of client resizing (and cropping, rotation etc.). It shouldn't be that difficult to use this FileAPI tool together with some system settings to downsize images before the are uploaded. Our experience with customers shows a great demand for that.

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

No branches or pull requests

4 participants