File: floodfillicon.sh

package info (click to toggle)
dia-shapes 0.6.0-3.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 5,700 kB
  • sloc: makefile: 1,315; cs: 964; sh: 645; python: 129
file content (4 lines) | stat: -rwxr-xr-x 264 bytes parent folder | download | duplicates (3)
1
2
3
4
#!/bin/bash
# Floodfill all white areas from the outside with transparency

convert $1 -bordercolor white -border 1 +repage  png32:- | convert - -alpha on channel RGBA -fuzz 8% -fill none -draw 'color 0,0 floodfill' png32:- | convert - -crop '22x22+1+1!' png32:$1