Save - carstenschaefer/ImagerJs GitHub Wiki
Provides a tool for uploading images.
Enabling the Plugin
plugins: [
'Rotate',
'Crop',
'Resize',
'Save',
'Delete'
]
Configuration
pluginsConfig: {
Save: {
upload: true,
uploadFunction: function (imageId, imageData, callback) {
// Here should be the code to upload image somewhere
// to Azure, Amazon S3 or similar. When upload completes we will have
// the url of uploaded image. Then call the function callback(image_url)
// to notify ImagerJs that image has been uploaded to the server
callback('http://upload.server.com/image.jpg');
}
}
}
- Plugin used for uploading images to a server.
- Not needed when when saving images locally, both standalone version or Redactor plugin.