Crop image to square shape

This commit is contained in:
Edgar P. Burkhart 2022-05-08 10:24:36 +02:00
parent 329c96e2c7
commit 0d77c38658
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
4 changed files with 1 additions and 1 deletions

View file

@ -1,2 +1,2 @@
#!/usr/bin/env sh #!/usr/bin/env sh
convert "$1" -geometry 384x384^ "${1%.*}.webp" convert "$1" -geometry "384x384^" -gravity center -crop "384x384+0+0" "${1%.*}.webp"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 196 KiB

After

Width:  |  Height:  |  Size: 152 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 117 KiB

After

Width:  |  Height:  |  Size: 94 KiB