pkgsrc/graphics/py-imaging/patches/patch-ac
drochner 3bc57359d1 recognize a 16bit greyscale format with "white is zero" (which is
generated by some neutron image plate detector) -- PIL is lacking
some infrastructure here so it gets treated like "black is zero"
but this is fine for me because I don't want to interpret it
photometrically anyway
2010-07-19 17:45:02 +00:00

12 lines
535 B
Text

$NetBSD: patch-ac,v 1.1 2010/07/19 17:45:03 drochner Exp $
--- PIL/TiffImagePlugin.py.orig 2010-07-19 14:29:50.000000000 +0000
+++ PIL/TiffImagePlugin.py
@@ -131,6 +131,7 @@ OPEN_INFO = {
# (ByteOrder, PhotoInterpretation, SampleFormat, FillOrder, BitsPerSample,
# ExtraSamples) => mode, rawmode
(II, 0, 1, 1, (1,), ()): ("1", "1;I"),
+ (II, 0, 1, 1, (16,), ()): ("I;16", "I;16"),
(II, 0, 1, 2, (1,), ()): ("1", "1;IR"),
(II, 0, 1, 1, (8,), ()): ("L", "L;I"),
(II, 0, 1, 2, (8,), ()): ("L", "L;IR"),