From d79c9a22244ebc7aba491ad50ef2edced6c00d88 Mon Sep 17 00:00:00 2001 From: José Fonseca Date: Mon, 16 Sep 2013 14:57:30 +0100 Subject: image: Non-standard PNM format variant for 4-float images. --- scripts/retracediff.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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 = '' -- cgit v1.2.3