[skip deploy] Add script to convert all PNG assets to WebP

Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
This commit is contained in:
Harsh Shandilya 2020-02-08 15:46:17 +05:30
parent 1c94a48241
commit dbf6280c3e
No known key found for this signature in database
GPG Key ID: B7843F823355E9B9

4
pngtowebp.sh Executable file
View File

@ -0,0 +1,4 @@
#!/usr/bin/env bash
fd -tf png$ static/uploads -x convert {} -quality 100 -define webp:lossless=true {.}.webp
fd -tf png$ static/uploads -X rm -v