Image and caching optimizations

This commit is contained in:
Jeremy Karst 2025-01-14 22:06:25 -05:00
parent cddaef6850
commit 3688128d00
5 changed files with 5 additions and 3 deletions

View file

@ -2,7 +2,7 @@
Open Signature Generator is a web based tool for generating and verifying handwritten-style signatures for documents. Signatures are saved as images with transparency and can be easily inserted into documents which need to be signed using LibreOffice, or any other document editing software.
![Example Signature Image](https://osg.jkdev.org/example-signature-inverted.png)
![Example Signature Image](https://osg.jkdev.org/example-signature-inverted.webp)
## Features

View file

@ -51,6 +51,8 @@ def run_server(host_ip, host_port, host_prefix, static_dir, database_connection,
'tools.staticdir.on': True,
'tools.staticdir.dir': static_dir,
'tools.staticdir.index': 'index.html',
'tools.expires.on': True,
'tools.expires.delay': 30*24*60*60, # 30 days
},
'/images': {
'tools.caching.on': True,

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View file

@ -21,8 +21,8 @@
</div>
<div class="signature-area">
<img src="example-signature.png" class="signature-image" alt="Signature" />
<img src="example-signature-inverted.png" class="signature-image signature-image-inverted hidden" alt="Signature" />
<img src="example-signature.webp" class="signature-image" alt="Signature" />
<img src="example-signature-inverted.webp" class="signature-image signature-image-inverted hidden" alt="Signature" />
<div id="signature-line"></div>
<svg class="copy-hint-arrow hidden" viewBox="0 -2 16 18">
<path fill-rule="evenodd" d="M14.854 4.854a.5.5 0 0 0 0-.708l-4-4a.5.5 0 0 0-.708.708L13.293 4H3.5A2.5 2.5 0 0 0 1 6.5v8a.5.5 0 0 0 1 0v-8A1.5 1.5 0 0 1 3.5 5h9.793l-3.147 3.146a.5.5 0 0 0 .708.708l4-4z"/>