source: git/lib/icons/png2winicon

walls-data-hanging-as-warning
Last change on this file was dfa3e57, checked in by Olly Betts <olly@…>, 3 months ago

Overhaul scripts to convert to .ico

The existing scripts were failing with modern NetPBM versions.
We were using a long-deprecated pngtopnm tool, so switch to its
replacement pngtopam which can convert from PNG to .ico in fewer
steps because we don't have to handle the mask separately.

Remove unused variant version src/png2winicon.

Remove xpm2winicon and instead convert XPM to .ico via PNG.

  • Property mode set to 100755
File size: 120 bytes
Line 
1#!/bin/sh
2set -e
3t=.tmp.$$
4pngtopam -alphapam "$1" > "$t.pam"
5pamtowinicon -truetransparent "$t.pam" > "$2"
6rm "$t.pam"
Note: See TracBrowser for help on using the repository browser.