Last active
October 11, 2022 07:43
-
-
Save dardo82/adb19f4202b1e06e435c718e7f452a3b to your computer and use it in GitHub Desktop.
FrontRow Kodi Icon
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
BASE="FrontRow.png"; LOGO="Kodi.png"; PNG="${LOGO%.*}-$BASE" | |
ICNS=${PNG/.png/.icns}; SIZE=$(file "$BASE" | cut -d' ' -f5) | |
for n in {0..3}; do eval S$n="$[$SIZE/(2**$n)]"; done | |
DIM="${S2}x${S2}"; POS="+$[($S2+$S3)]+$[($S0/3)-$S3]" | |
convert $BASE \( $LOGO -geometry $DIM$POS \) \ | |
-compose soft-light -composite $PNG | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment