Branch: Tag:

2004-02-27

2004-02-27 12:02:39 by Martin Nilsson <mani@lysator.liu.se>

Image format tests.

Rev: 1x1/01-baseline-preview.jpg:1.1
Rev: 1x1/02-baseline-nopreview.jpg:1.1
Rev: 1x1/03-optimized-preview.jpg:1.1
Rev: 1x1/04-optimized-nopreview.jpg:1.1
Rev: 1x1/05-progressive-preview.jpg:1.1
Rev: 1x1/06-progressive-nopreview.jpg:1.1
Rev: 1x1/07.psd:1.1
Rev: 1x1/08.pdd:1.1
Rev: 1x1/09-windows-24bit.bmp:1.1
Rev: 1x1/10-os2-24bit.bmp:1.1
Rev: 1x1/11-windows-24bit.rle:1.1
Rev: 1x1/12-os2-24bit.rle:1.1
Rev: 1x1/13-transparency-preview-normal.gif:1.1
Rev: 1x1/14-transparency-preview-interlaced.gif:1.1
Rev: 1x1/15-transparency-nopreview-normal.gif:1.1
Rev: 1x1/16-transparency-nopreview-interlaced.gif:1.1
Rev: 1x1/17-notransparency-preview-normal.gif:1.1
Rev: 1x1/18-notransparency-preview-interlaced.gif:1.1
Rev: 1x1/19-notransparency-nopreview-normal.gif:1.1
Rev: 1x1/20-notransparency-nopreview-interlaced.gif:1.1
Rev: 1x1/21.eps:1.1
Rev: 1x1/22-photoshop-dcs-1.0.C:1.1
Rev: 1x1/22-photoshop-dcs-1.0.K:1.1
Rev: 1x1/22-photoshop-dcs-1.0.M:1.1
Rev: 1x1/22-photoshop-dcs-1.0.Y:1.1
Rev: 1x1/22-photoshop-dcs-1.0.eps:1.1
Rev: 1x1/23-photoshop-dcs-2.0.eps:1.1
Rev: 1x1/24.pcx:1.1
Rev: 1x1/25-jpeg.pdf:1.1
Rev: 1x1/26-zip.pdf:1.1
Rev: 1x1/27-jpeg.pdp:1.1
Rev: 1x1/28-zip.pdp:1.1
Rev: 1x1/29-32bpp.pct:1.1
Rev: 1x1/30-16bpp.pct:1.1
Rev: 1x1/31-32bpp.pic:1.1
Rev: 1x1/32-16bpp.pic:1.1
Rev: 1x1/33.pxr:1.1
Rev: 1x1/34-none.png:1.1
Rev: 1x1/35-interlaced.png:1.1
Rev: 1x1/36-interleaved.raw:1.1
Rev: 1x1/37-noninterleaved.raw:1.1
Rev: 1x1/38.sct:1.1
Rev: 1x1/39-32bpp.tga:1.1
Rev: 1x1/40-24bpp.tga:1.1
Rev: 1x1/41-16bpp.tga:1.1
Rev: 1x1/42-24bpp.vda:1.1
Rev: 1x1/43-24bpp.icb:1.1
Rev: 1x1/44-24bpp.vst:1.1
Rev: 1x1/45-pc-nolzw.tif:1.1
Rev: 1x1/46-pc-lzw.tif:1.1
Rev: 1x1/47-mac-nolzw.tif:1.1
Rev: 1x1/48-mac-lzw.tif:1.1
Rev: 1x1/testsuite.in:1.1

1: -  + %!PS-Adobe-3.0 EPSF-3.0 + %%Creator: Adobe Photoshop Version 6.0 + %%Title: 21.eps + %%CreationDate: Mon Mar 24 2003 17:05:00 + %%BoundingBox: 0 0 1 1 + %%HiResBoundingBox: 0 0 1 1 + %%SuppressDotGainCompensation + %%EndComments + %%BeginProlog + %%EndProlog + %%BeginSetup + %%EndSetup + %ImageData: 1 1 8 3 1 1 1 "beginimage" + %BeginPhotoshop: 1496 + % 3842494D03ED0A5265736F6C7574696F6E000000001000480000000200020048 + % 0000000200023842494D040D18465820476C6F62616C204C69676874696E6720 + % 416E676C650000000004000000783842494D041912465820476C6F62616C2041 + % 6C74697475646500000000040000001E3842494D03F30B5072696E7420466C61 + % 677300000009000000000000000001003842494D040A0E436F70797269676874 + % 20466C6167000000000100003842494D2710144A6170616E657365205072696E + % 7420466C616773000000000A000100000000000000023842494D03F517436F6C + % 6F722048616C66746F6E652053657474696E677300000048002F66660001006C + % 66660006000000000001002F6666000100A1999A000600000000000100320000 + % 0001005A00000006000000000001003500000001002D00000006000000000001 + % 3842494D03F817436F6C6F72205472616E736665722053657474696E67730000 + % 00700000FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF03E800000000 + % FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF03E800000000FFFFFFFF + % FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF03E800000000FFFFFFFFFFFFFFFF + % FFFFFFFFFFFFFFFFFFFFFFFFFFFF03E800003842494D04080647756964657300 + % 00000010000000010000024000000240000000003842494D041E0D55524C206F + % 766572726964657300000004000000003842494D041A06536C69636573000000 + % 008100000006000000000000000000000001000000010000001000310031002D + % 00770069006E0064006F00770073002D00320034006200690074000000010000 + % 0000000000000000000000000000000000010000000000000000000000010000 + % 0001000000000000000000000000000000000000000000000000000000000000 + % 000000003842494D04111149434320556E74616767656420466C616700000001 + % 01003842494D0414174C617965722049442047656E657261746F722042617365 + % 00000004000000013842494D040C154E65772057696E646F7773205468756D62 + % 6E61696C0000023800000001000000010000000100000004000000040000021C + % 00180001FFD8FFE000104A46494600010201004800480000FFEE000E41646F62 + % 6500648000000001FFDB0084000C08080809080C09090C110B0A0B11150F0C0C + % 0F1518131315131318110C0C0C0C0C0C110C0C0C0C0C0C0C0C0C0C0C0C0C0C0C + % 0C0C0C0C0C0C0C0C0C0C0C0C0C010D0B0B0D0E0D100E0E10140E0E0E14140E0E + % 0E0E14110C0C0C0C0C11110C0C0C0C0C0C110C0C0C0C0C0C0C0C0C0C0C0C0C0C + % 0C0C0C0C0C0C0C0C0C0C0C0C0C0CFFC000110800010001030122000211010311 + % 01FFDD00040001FFC4013F000001050101010101010000000000000003000102 + % 0405060708090A0B010001050101010101010000000000000001000203040506 + % 0708090A0B1000010401030204020507060805030C3301000211030421123105 + % 4151611322718132061491A1B14223241552C16233347282D14307259253F0E1 + % F163733516A2B283264493546445C2A3743617D255E265F2B384C3D375E3F346 + % 2794A485B495C4D4E4F4A5B5C5D5E5F55666768696A6B6C6D6E6F63747576777 + % 8797A7B7C7D7E7F7110002020102040403040506070706053501000211032131 + % 12044151617122130532819114A1B14223C152D1F0332462E172829243531563 + % 7334F1250616A2B283072635C2D2449354A317644555367465E2F2B384C3D375 + % E3F34694A485B495C4D4E4F4A5B5C5D5E5F55666768696A6B6C6D6E6F6273747 + % 5767778797A7B7C7FFDA000C03010002110311003F00E7925C5A4B3DD67FFFD9 + % 3842494D04211A56657273696F6E20636F6D7061746962696C69747920696E66 + % 6F000000005500000001010000000F00410064006F0062006500200050006800 + % 6F0074006F00730068006F00700000001300410064006F006200650020005000 + % 68006F0074006F00730068006F007000200036002E003000000001003842494D + % 03FD0845505320496E666F00000000070000000000000000 + %EndPhotoshop + gsave % EPS gsave + /hascolor + /deviceinfo where + {pop deviceinfo /Colors known + {deviceinfo /Colors get exec 1 gt} + {false} ifelse} + {/statusdict where + {pop statusdict /processcolors known + {statusdict /processcolors get exec 1 gt} + {false} ifelse} + {false} ifelse} + ifelse + def + 40 dict begin + /_image systemdict /image get def + /_setgray systemdict /setgray get def + /_currentgray systemdict /currentgray get def + /_settransfer systemdict /settransfer get def + /_currenttransfer systemdict /currenttransfer get def + /blank 0 _currenttransfer exec + 1 _currenttransfer exec eq def + /negative blank + {0 _currenttransfer exec 0.5 lt} + {0 _currenttransfer exec 1 _currenttransfer exec gt} + ifelse def + /inverted? negative def + /level2 systemdict /languagelevel known + {languagelevel 2 ge} {false} ifelse def + /level3 systemdict /languagelevel known + {languagelevel 3 ge} {false} ifelse def + /foureq {4 index eq 8 1 roll + 4 index eq 8 1 roll + 4 index eq 8 1 roll + 4 index eq 8 1 roll + pop pop pop pop and and and} def + hascolor {/band 0 def} {/band 5 def} ifelse + /setcmykcolor where {pop + 1 0 0 0 setcmykcolor _currentgray 1 exch sub + 0 1 0 0 setcmykcolor _currentgray 1 exch sub + 0 0 1 0 setcmykcolor _currentgray 1 exch sub + 0 0 0 1 setcmykcolor _currentgray 1 exch sub + 4 {4 copy} repeat + 1 0 0 0 foureq {/band 1 store} if + 0 1 0 0 foureq {/band 2 store} if + 0 0 1 0 foureq {/band 3 store} if + 0 0 0 1 foureq {/band 4 store} if + 0 0 0 0 foureq {/band 6 store} if} if + blank {/band 6 store} if + gsave % Image Header gsave + /rows 1 def + /cols 1 def + 1 1 scale + level2 { + band 0 eq { + /DeviceRGB + } {/DeviceGray} ifelse + setcolorspace currentdict /PhotoshopDuotoneColorSpace undef currentdict /PhotoshopDuotoneAltColorSpace undef } if + /picstr1 1 string def + /picstr2 1 string def + /picstr3 1 string def + /picstr4 1 string def + /_rowpadstr 1 string def + /rawreaddata {currentfile exch readstring pop} def + /padreaddata { _topPad 0 gt { /_topPad _topPad 1 sub def pop _rowpadstr } +  { _subImageRows 0 gt { /_subImageRows _subImageRows 1 sub def +  dup _leftPad _picsubstr rawreaddata putinterval } +  { pop _rowpadstr } ifelse } ifelse } def + /image2 level2 {/image load def} {{begin + Width Height BitsPerComponent ImageMatrix + Decode length 2 eq + {/DataSource load image} if + Decode length 6 eq + {DataSource 0 get DataSource 1 get DataSource 2 get + true 3 colorimage} if + Decode length 8 eq + {DataSource 0 get DataSource 1 get + DataSource 2 get DataSource 3 get + true 4 colorimage} if + end} def} ifelse + /_image2 level2 {/_image load def} {{begin + Width Height BitsPerComponent ImageMatrix + /DataSource load _image end} def} ifelse + /beginimage { + band 0 eq band 4 eq or band 5 eq or + {image2} + {negative {{pop 0}} {{pop 1}} ifelse + _settransfer _image2} ifelse + } def + /readdata /rawreaddata load bind def + 12 dict begin + /ImageType 1 def + /Width cols def + /Height rows def + /ImageMatrix [cols 0 0 rows neg 0 rows] def + /BitsPerComponent 8 def + band 0 eq + {/Decode [0 1 0 1 0 1] def + /MultipleDataSources true def + /DataSource [ + {picstr1 readdata} + {picstr2 readdata} + {picstr3 readdata picstr4 readdata pop} + ] def} + {/Decode [0 1] def + /DataSource { + picstr1 readdata pop + picstr2 readdata pop + picstr3 readdata pop + picstr4 readdata + } def} + ifelse + currentdict end + %%BeginBinary: 16 + beginimage?O + %%EndBinary + grestore end % Image Trailer grestore + grestore % EPS grestore   Newline at end of file added.