Opened 10 years ago
Last modified 10 years ago
#13520 closed New Feature
Set max width and height of the uploading image — at Version 3
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 |
Keywords: | Cc: |
Description (last modified by )
It should be possible to set maximum width and height of the uploading image. There should be a configuration option to defined max width and height of the image for upload image plugin. This option should be read in the upload image plugin and set additional parameters for the request (using feature introduces in #13518).
Upload image has to handle response with the width and height too. Now when the image is uploaded it has the same dimensions as the uploading image, see onUploaded
method in the upload image definition, in uploadimage
plugin. If server return new dimensions they should be used instead original dimensions. It should be possible to get them thanks to #13519.
Additionally it makes no sens to show user full size image during uploading to show him miniature when the upload is done. CKEditor should calculate image dimensions and set the proper dimensions at the begging. Then when the upload is done CKEditor should use dimensions from the server anyway.
Change History (3)
comment:1 Changed 10 years ago by
comment:2 Changed 10 years ago by
Version: | 4.5.1 |
---|
comment:3 Changed 10 years ago by
Description: | modified (diff) |
---|
See http://stackoverflow.com/questions/31192213/ckeditor-4-5-drag-and-drop-image-upload-how-to-return-new-dimensions-in-json-r