File: topgm

package info (click to toggle)
pypng 0.0.20%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 992 kB
  • sloc: python: 4,506; sh: 186; makefile: 12
file content (9 lines) | stat: -rwxr-xr-x 202 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
#!/bin/sh

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

python -m pngsuite basi0g04 |
pripngtopam - |
# The last 1024 bytes (32x32) are binary data; extract header
head -c -1024 | tr -cs 0-9A-Z |
grep -q 'P5 32 32 15'