File: chunk-delete

package info (click to toggle)
pypng 0.20231004.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 724 kB
  • sloc: python: 4,818; sh: 230; makefile: 19
file content (13 lines) | stat: -rwxr-xr-x 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

PATH=${PWD%/code*}/code:$PATH

pngtrns () {
  priforgepng -d 2 glr rbr gtb -s 8 | priweavepng - - - |
  prichunkpng --transparent '#FFF' - 
}

pngtrns | pripnglsch | grep -q tRNS || exit 9
pngtrns | prichunkpng --delete tRNS - |
  pripnglsch | grep -q tRNS && exit 1
exit 0