File: chunk-gamma

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

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

# It so happens that image f02n0g08 does not have a gamma chunk
python -m pngsuite f02n0g08 | pripnglsch | grep -q gAMA && exit 9
python -m pngsuite f02n0g08 | prichunkpng --gamma 0.45 - |
  pripnglsch | grep -q gAMA