Add x2 img
|
@ -1,2 +1,3 @@
|
|||
#!/usr/bin/env sh
|
||||
convert "$1" -geometry "384x384^" -gravity center -crop "384x384+0+0" "${1%.*}.webp"
|
||||
convert "$1" -geometry 328x328^ -gravity center -crop "328x328+0+0" "${1%.*}x2.webp"
|
||||
convert "${1%.*}x2.webp" -resize 50% "${1%.*}.webp"
|
||||
|
|
Before Width: | Height: | Size: 51 KiB After Width: | Height: | Size: 8.7 KiB |
BIN
src/static/img/pic1x2.webp
Normal file
After Width: | Height: | Size: 40 KiB |
Before Width: | Height: | Size: 152 KiB After Width: | Height: | Size: 42 KiB |
BIN
src/static/img/pic2x2.webp
Normal file
After Width: | Height: | Size: 115 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 35 KiB |
BIN
src/static/img/pic3x2.webp
Normal file
After Width: | Height: | Size: 78 KiB |