Commit ad0e9c74 authored by Romain Courteaud's avatar Romain Courteaud

erp5_document_scanner: use compression settings from preference

parent db287a77
......@@ -196,7 +196,8 @@
if (gadget.state['blob_url_' + blob_page] === undefined) {
// Slow, takes 2 seconds or more on mobile.
return new RSVP.Queue(
promiseCanvasToBlob(gadget.state['blob_canvas_' + blob_page], 0.85)
promiseCanvasToBlob(gadget.state['blob_canvas_' + blob_page],
gadget.state.preferred_image_settings_data.compression || 1)
)
.push(function (blob) {
return jIO.util.readBlobAsDataURL(blob);
......
......@@ -244,7 +244,7 @@
</item>
<item>
<key> <string>serial</string> </key>
<value> <string>982.58483.10473.65433</string> </value>
<value> <string>982.58509.58580.23415</string> </value>
</item>
<item>
<key> <string>state</string> </key>
......@@ -262,7 +262,7 @@
</tuple>
<state>
<tuple>
<float>1585658339.7</float>
<float>1585659717.13</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