image icon indicating copy to clipboard operation
image copied to clipboard

Cropping Feature

Open christoph-kluge opened this issue 5 years ago • 1 comments

I have two questions in mind here:

a) Is it planned to support cropping in the future by this package? (internal own cropping module) b) Is there any plans to support some kind of pre-upload hooks where you can modify the image before it's uploaded (allows using custom cropping modules)

christoph-kluge avatar Jul 02 '20 10:07 christoph-kluge

You can do this with the custom uploader methods, that is how I do it. I take the file that has been selected and send it to my image cropper plugin (Doka). When cropping is done, I upload it to our servers with our own ajax-request plugin and return the necessary paths to this plugin.

uploader: {
    uploadByFile: (file) => this.processImageUpload(file),
    uploadByUrl: (url) => this.getFileFromURL(url)
        .then((file) => this.processImageUpload(file)).catch((err) => err),
},

Duncank avatar Jul 27 '20 09:07 Duncank