File: make_scaled_icons.sh

package info (click to toggle)
limesuite 22.09.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 17,208 kB
  • sloc: cpp: 157,429; ansic: 6,852; python: 197; sh: 56; makefile: 19
file content (17 lines) | stat: -rw-r--r-- 668 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# Use this script to convert the master icon to several scaled versions
# which are used for the freedesktop.org xdg-icon-resource associations.
# This script depends on imagemagick to provide the convert utility.
# The icons are checked into the repository, and this script is not installed.
# Keep it around to update the desktop icons if the master icon is changed.

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"

MASTER_ICON=${DIR}/../src/resources/LMS_ICO.ico[0]

for size in 16 22 32 48 64 128; do
    echo "Generating lime-suite-${size}.png..."
    convert ${MASTER_ICON} -geometry ${size} ${DIR}/lime-suite-${size}.png
done
echo "Done!"