Opened 10 years ago
Last modified 10 years ago
#13520 closed New Feature
Set max width and height of the uploading image — at Initial Version
Reported by: | Piotr Jasiun | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 4.5.0 |
Keywords: | Cc: |
Description
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 used full size image during uploading to should 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.