File: make_ico.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 (21 lines) | stat: -rwxr-xr-x 530 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
21
#!/bin/bash
image_dir=src/images
out=${1:-src/images/icon.ico}

args=(
    -background transparent
    ${image_dir}/icon_16x16.png
    \( ${image_dir}/icon_22x22.png -resize 20x20 \)
    ${image_dir}/icon_24x24.png
    ${image_dir}/icon_32x32.png
    \( ${image_dir}/icon_48x48.png -resize 40x40 \)
    ${image_dir}/icon_48x48.png
    ${image_dir}/icon_64x64.png
    \( ${image_dir}/icon_128x128.png -resize 96x96 \)
    ${image_dir}/icon_128x128.png
    ${image_dir}/icon_256x256.png
    "$out"
    )

exec convert "${args[@]}"