TIFF画像をロードするために使用PIL==1.1.7
すると、色空間が間違っているようです。
どうしたの?
- を使用
.tiff
して作成されましたconvert test.jpg test.tiff
(ただし、他のtiffファイルでも発生するようです) - それはで見つけることができます:http://hul.wolever.net/dump/test.tiff
- 次の場合の出力
PIL.Image.DEBUG = True
:
>>>PILインポート画像から >>> Image.DEBUG = True >>> Image.open( "/ tmp / test.tiff")。show() タグ:ImageWidth(256)-タイプ:short(3)-値:(560、) タグ:ImageLength(257)-タイプ:short(3)-値:(401、) タグ:BitsPerSample(258)-タイプ:short(3)-値:(8、8、8) タグ:圧縮(259)-タイプ:短い(3)-値:(7、) タグ:PhotometricInterpretation(262)-タイプ:short(3)-値:(2、) タグ:FillOrder(266)-タイプ:short(3)-値:(1、) タグ:DocumentName(269)-タイプ:ascii(2)-値:/tmp/lemur.tiff タグ:StripOffsets(273)-タイプ:long(4)-値:(8、9282、18712、28312、38000、48730、59052、70406、83010、95978、108967、121029、133136、145555、157411、168289、179433 、191157、202954、214664、226914、238919、250547、261871、273282、284453) タグ:向き(274)-タイプ:短い(3)-値:(1、) タグ:SamplesPerPixel(277)-タイプ:short(3)-値:(3、) タグ:RowsPerStrip(278)-タイプ:short(3)-値:(16、) タグ:StripByteCounts(279)-タイプ:long(4)-値:(9274、9430、9600、9688、10730、10322、11354、12604、12968、12989、12062、12107、12419、11856、10878、11144、11724 、11797、11710、12250、12005、11628、11324、11411、11171、2541) タグ:XResolution(282)-タイプ:rational(5)-値:((1207959552、16777216)、) タグ:YResolution(283)-タイプ:rational(5)-値:((1207959552、16777216)、) タグ:PlanarConfiguration(284)-タイプ:short(3)-値:(1、) タグ:ResolutionUnit(296)-タイプ:short(3)-値:(1、) タグ:PageNumber(297)-タイプ:short(3)-値:(0、1) タグ:JPEGTables(347)-タイプ:未定義(7)-値:???? C ?? ???}!1AQa "q2 ??#B ?? R ?? $ 3br? %&'()* 456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz ????????????????????????????????????????? ?????????????????????????????????? タグ:YCbCrSubSampling(530)-タイプ:short(3)-値:(2、2) *** 概要 *** -圧縮:jpeg --photometric_interpretation:2 --planar_configuration:1 --fill_order:1 -サイズ:(560、401) フォーマットキー:('II'、2、1、1、(8、8、8)、()) -rawモード:RGB -ピルモード:RGB