[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 ebdbc41a12
commit 2c06ac5fe4
1 changed files with 4 additions and 0 deletions

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