File: sbit

package info (click to toggle)
pypng 0.0.19%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 568 kB
  • sloc: python: 4,371; sh: 126; makefile: 5
file content (8 lines) | stat: -rwxr-xr-x 220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
#!/bin/sh

# Test that a PPM file with MAXVAL 1 generates an sBIT chunk.

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

printf 'P6 8 1 1\n\0\0\0\0\0\1\0\1\0\0\1\1\1\0\0\1\0\1\1\1\0\1\1\1\n' |
pripamtopng - | tr -dc a-zA-Z | grep -q sBIT