image: Non-standard PNM format variant for 4-float images.
diff --git a/scripts/retracediff.py b/scripts/retracediff.py
index c0518df..71e9f06 100755
--- a/scripts/retracediff.py
+++ b/scripts/retracediff.py
@@ -148,6 +148,10 @@
         channels = 3
         bytesPerChannel = 4
         mode = 'RGB'
+    elif magic == 'PX':
+        channels = 4
+        bytesPerChannel = 4
+        mode = 'RGB'
     else:
         raise Exception('Unsupported magic `%s`' % magic)
     comment = ''