Image and caching optimizations
This commit is contained in:
parent
cddaef6850
commit
3688128d00
5 changed files with 5 additions and 3 deletions
|
@ -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.
|
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.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
|
|
@ -51,6 +51,8 @@ def run_server(host_ip, host_port, host_prefix, static_dir, database_connection,
|
||||||
'tools.staticdir.on': True,
|
'tools.staticdir.on': True,
|
||||||
'tools.staticdir.dir': static_dir,
|
'tools.staticdir.dir': static_dir,
|
||||||
'tools.staticdir.index': 'index.html',
|
'tools.staticdir.index': 'index.html',
|
||||||
|
'tools.expires.on': True,
|
||||||
|
'tools.expires.delay': 30*24*60*60, # 30 days
|
||||||
},
|
},
|
||||||
'/images': {
|
'/images': {
|
||||||
'tools.caching.on': True,
|
'tools.caching.on': True,
|
||||||
|
|
BIN
web_content/example-signature-inverted.webp
Normal file
BIN
web_content/example-signature-inverted.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 36 KiB |
BIN
web_content/example-signature.webp
Normal file
BIN
web_content/example-signature.webp
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
|
@ -21,8 +21,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="signature-area">
|
<div class="signature-area">
|
||||||
<img src="example-signature.png" class="signature-image" alt="Signature" />
|
<img src="example-signature.webp" class="signature-image" alt="Signature" />
|
||||||
<img src="example-signature-inverted.png" class="signature-image signature-image-inverted hidden" alt="Signature" />
|
<img src="example-signature-inverted.webp" class="signature-image signature-image-inverted hidden" alt="Signature" />
|
||||||
<div id="signature-line"></div>
|
<div id="signature-line"></div>
|
||||||
<svg class="copy-hint-arrow hidden" viewBox="0 -2 16 18">
|
<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"/>
|
<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"/>
|
||||||
|
|
Loading…
Add table
Reference in a new issue