Web Component: j-ClipboardImage
j-ClipboardImage
This component automaticaly captures images in Clipboard.
Configuration:
quality {Number}
JPEG quality, (default:90
)maxwidth {Number}
a maximum width (default:1024
)maxheight {Number}
a maximum height (default:768
)exec {String}
a link to execute method if the image is obtaineddisabled {Boolean}
can disable this componenttype {String}
output type, supportspng
orjpg
(default)- NEW
output {String}
output typebase64
(default) orfile
How to capture data?
// Attach event
ON('clipboardimage', function(base64) {
// We have to send data on the server in Base64 format
AJAX('POST /upload/', { file: base64 }, function(response) {
});
});
Created
10. february 2017
Updated
26. may 2023
Version
v1
License
https://www.totaljs.com/license/
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com