Commit 7dc705d7 authored by Gabriel Monnerat's avatar Gabriel Monnerat

erp5_document_scanner: Reduce image size after crop

parent 3b1c707d
......@@ -641,7 +641,7 @@
var canvas = gadget.cropper.getCroppedCanvas();
return new Promise(function (resolve) {
// XXX too slow, takes 2 seconds or more on mobile.
canvas.toBlob(resolve);
canvas.toBlob(resolve, 'image/jpeg', 0.85);
});
})
.push(function (blob) {
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>981.65259.1875.5819</string> </value>
<value> <string>981.65265.9437.56217</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1582305668.63</float>
<float>1582308884.59</float>
<string>UTC</string>
</tuple>
</state>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment