Open inreti-sb opened 9 years ago
+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.
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 https://github.com/modx-ccc-2015/whishlist/issues/37.
We adressed this before for the MultiUploadDialog extra, which supports drag and drop: https://github.com/thomasd/MultiUploadDialog/issues/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.
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: