File: make_server_icons.sh

package info (click to toggle)
gerbera 2.4.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 15,412 kB
  • sloc: cpp: 44,738; javascript: 13,430; xml: 5,730; ansic: 2,692; sh: 1,555; sql: 237; python: 191; makefile: 13
file content (20 lines) | stat: -rwxr-xr-x 956 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

# run as
# make_icons-mediatomb.sh mylogo.jpg
# Will generate all the required mediatomb icons

src="${1}"


convert "${src}" -filter Lanczos -resize x32 -background black -flatten bmp:"mt-icon32.bmp"
convert "${src}" -filter Lanczos -resize x32 -background black -flatten png:"mt-icon32.png"
convert "${src}" -filter Lanczos -resize x32 -background black -flatten jpg:"mt-icon32.jpg"

convert "${src}" -filter Lanczos -resize x48 -background black -flatten bmp:"mt-icon48.bmp"
convert "${src}" -filter Lanczos -resize x48 -background black -flatten png:"mt-icon48.png"
convert "${src}" -filter Lanczos -resize x48 -background black -flatten jpg:"mt-icon48.jpg"

convert "${src}" -filter Lanczos -resize x120 -background black -flatten bmp:"mt-icon120.bmp"
convert "${src}" -filter Lanczos -resize x120 -background black -flatten png:"mt-icon120.png"
convert "${src}" -filter Lanczos -resize x120 -background black -flatten jpg:"mt-icon120.jpg"