File: linux_make_icons.sh

package info (click to toggle)
copyq 3.7.3-1~bpo9+1
  • links: PTS, VCS
  • area: main
  • in suites: stretch-backports
  • size: 10,480 kB
  • sloc: cpp: 51,894; sh: 734; python: 211; xml: 57; makefile: 34
file content (20 lines) | stat: -rwxr-xr-x 457 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash
set -e

make_icons()
{
    input_icon=$1
    output_basename=$2

    for extent in 16 22 24 32 48 64 128 256 512 1024; do
        size="${extent}x${extent}"
        output="${output_basename}_$size.png"
        echo "Converting $input_icon -> $output"
        convert -background transparent -density 600 "$input_icon" \
            -resize "$size" "$output"
    done
}

cd src/images
make_icons icon.svg icon
make_icons icon-busy.svg icon-busy