Improve image compression (#2369)

* added options

* added checkbox handling to import into note

* added image compression option respecting
This commit is contained in:
Myzel394
2021-11-21 15:27:13 +00:00
committed by GitHub
parent de20183a22
commit 886fdf7cd6
6 changed files with 54 additions and 11 deletions

View File

@@ -34,7 +34,7 @@
</label>
</div>
<div class="checkbox">
<div class="checkbox" id="shrink-images-wrapper">
<label data-toggle="tooltip" title="<p>If you check this option, Trilium will attempt to shrink the imported images by scaling and optimization which may affect the perceived image quality. If unchecked, images will be imported without changes.</p><p>This doesn't apply to <code>.zip</code> imports with metadata since it is assumed these files are already optimized.</p>">
<input id="shrink-images-checkbox" value="1" type="checkbox" checked> <span>Shrink images</span>
</label>