File: prigreypng-bitdepths

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 (10 lines) | stat: -rwxr-xr-x 308 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

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

# Test that an RGB image with heterogenous channel bitdepths
# can still be converted to grey.

{ priforgepng -d 2 hs2 ; priforgepng -d 3 hs2 ; priforgepng -d 1 hs2 ; } |
  priweavepng - - - | prigreypng | pripnglsch |
  grep IHDR | grep -q 00000100000001000.00000000