Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
Add autogen for v5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
yaroslav4167 committed Mar 16, 2020
0 parents commit 6b9f059
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions v5.1/auto-gen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

img="$1"

width="$(identify -format '%w' "$img")"
height="$(identify -format '%h' "$img")"

newWidth=738
newHeight=450

offsetX=$(($width / 2 - $newWidth / 2))
offsetY=$(($height / 2 - $newHeight / 2))

convert \
-crop "$newWidth"x"$newHeight"+"$offsetX"+"$offsetY" \
-blur 0x3 \
-fill "rgb(32, 32, 32)" \
-draw "rectangle 0,0 $newWidth,46" \
"$img" "$img"

0 comments on commit 6b9f059

Please sign in to comment.