Skip to content

Build your personal knowledge base with Trilium Notes

Merge remote-tracking branch 'origin/stable'

zadam034aaa720949
diff --cc src/public/app/dialogs/options/other.js
index b8c7b7738f,30ef661b6f..31c5c2a772
--- a/src/public/app/dialogs/options/other.js
+++ b/src/public/app/dialogs/options/other.js
@@@ -34,22 -27,15 +34,22 @@@ const TPL =
<div>
<h4>Image compression</h4>
-
+
<div class="form-group">
- <label for="image-max-width-height">Max width / height of an image in pixels (image will be resized if it exceeds this setting).</label>
- <input class="form-control" id="image-max-width-height" type="number" min="1">
+ <input id="image-compresion-enabled" type="checkbox" name="image-compression-enabled">
+ <label for="image-compresion-enabled">Enable image compression</label>
</div>
- <div class="form-group">
- <label for="image-jpeg-quality">JPEG quality (0 - worst quality, 100 best quality, 50 - 85 is recommended)</label>
- <input class="form-control" id="image-jpeg-quality" min="0" max="100" type="number">
+ <div id="image-compression-enabled-wraper">
+ <div class="form-group">
+ <label for="image-max-width-height">Max width / height of an image in pixels (image will be resized if it exceeds this setting).</label>
- <input class="form-control" id="image-max-width-height" type="number">
++ <input class="form-control" id="image-max-width-height" type="number" min="1">
+ </div>
+
+ <div class="form-group">
+ <label for="image-jpeg-quality">JPEG quality (0 - worst quality, 100 best quality, 50 - 85 is recommended)</label>
+ <input class="form-control" id="image-jpeg-quality" min="0" max="100" type="number">
+ </div>
</div>
</div>