Commit ad0e9c74 authored by Romain Courteaud's avatar Romain Courteaud

erp5_document_scanner: use compression settings from preference

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