diff options
author | José Fonseca <jfonseca@vmware.com> | 2013-09-16 14:57:30 +0100 |
---|---|---|
committer | José Fonseca <jfonseca@vmware.com> | 2013-09-16 14:57:30 +0100 |
commit | d79c9a22244ebc7aba491ad50ef2edced6c00d88 (patch) | |
tree | 7092e95d6587dbb65f8c7fd02f361bca4d31811a /scripts | |
parent | 127a7281d3cc0c8233e128a2c3e8601276939b9a (diff) |
image: Non-standard PNM format variant for 4-float images.
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/retracediff.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/retracediff.py b/scripts/retracediff.py index c0518df2..71e9f064 100755 --- a/scripts/retracediff.py +++ b/scripts/retracediff.py @@ -148,6 +148,10 @@ def read_pnm(stream): channels = 3 bytesPerChannel = 4 mode = 'RGB' + elif magic == 'PX': + channels = 4 + bytesPerChannel = 4 + mode = 'RGB' else: raise Exception('Unsupported magic `%s`' % magic) comment = '' |