Lines Matching +full:lo +full:- +full:x2 +full:- +full:en

2 #------------------------------------------------------------------------------
4 # images: file(1) magic for image formats (see also "iff", and "c-lang" for
9 # merging several one- and two-line files into here.
13 # Targa - matches `povray', `ppmtotga' and `xv' outputs
21 # or theoretically 2-128 reserved for use by Truevision or 128-255 may be used for developer applic…
31 !:strength -40
33 #>(2.S-2) belong !0x28632943
45 >>>>>>0 use tga-image
47 >>>>>>0 use tga-image
49 >>>>>>0 use tga-image
51 >>>>>>0 use tga-image
53 >>>>>>0 use tga-image
55 >>>>>>0 use tga-image
57 0 name tga-image
59 !:mime image/x-tga
65 >2 ubyte&0xF7 1 - Map
66 >2 ubyte&0xF7 2 - RGB
69 >2 ubyte&0xF7 3 - Mono
71 # Compressed color-mapped data, using Huffman, Delta, and runlength encoding
72 >2 ubyte 32 - Color
73 # Compressed color-mapped data, using Huffman, Delta, and RLE. 4-pass quadtree- type process
74 >2 ubyte 33 - Color
78 >>3 uleshort >0 \b%d-
82 >2 ubyte&0x08 8 - RLE
95 # Image descriptor: bits 3-0 give the alpha channel depth, bits 5-4 give direction
97 >17 ubyte&0x0F >0 - %d-bit alpha
98 # bits 5-4 give direction. normal bottom left
99 >17 ubyte &0x20 - top
100 #>17 ubyte ^0x20 - bottom
101 >17 ubyte &0x10 - right
102 #>17 ubyte ^0x10 - left
103 # some info say other bits 6-7 should be zero
105 # 00 - no interleave;01 - even/odd interleave; 10 - four way interleave; 11 - reserved
106 #>17 ubyte&0xC0 0x00 - no interleave
107 >17 ubyte&0xC0 0x40 - interleave
108 >17 ubyte&0xC0 0x80 - four way interleave
109 >17 ubyte&0xC0 0xC0 - reserved
114 >18 search/4261301/s TRUEVISION-XFILE.\0
116 >>&-8 ulelong >0
118 >>>(&-4.l) uleshort 0x01EF
120 >>>>&0 string >\0 - author "%-.40s"
122 >>>>&41 string >\0 - comment "%-.80s"
126 >>>>>&-6 uleshort x %d
128 >>>>>&-8 uleshort x \b-%d
130 >>>>>&-4 uleshort x \b-%d
134 >>>>>&-8 uleshort x %d
136 >>>>>&-6 uleshort x \b:%.2d
138 >>>>>&-4 uleshort x \b:%.2d
140 >>>>&377 string >\0 - job "%-.40s"
143 >>>>>&-8 uleshort x %d
144 >>>>>&-6 uleshort x \b:%.2d
145 >>>>>&-4 uleshort x \b:%.2d
147 >>>>&424 string >\0 - %-.40s
155 >>>>&468 ulelong >0 - keycolor %#8.8x
159 >>>>>&-4 uleshort >0 - aspect %d
160 >>>>>&-2 uleshort x \b/%d
164 >>>>>&-4 uleshort >0 - gamma %d
165 >>>>>&-2 uleshort x \b/%d
167 #>>>>&480 ulelong x - col offset %#8.8x
169 #>>>>&484 ulelong x - stamp offset %#8.8x
171 #>>>>&488 ulelong x - scan offset %#8.8x
173 #>>>>&492 ubyte x - Attributes %#x
177 # URL: https://en.wikipedia.org/wiki/Netpbm
182 >3 regex/s =\^[0-9]{1,50}[\040\t\f\r\n]+[0-9]{1,50} Netpbm image data
183 >>&0 regex =[0-9]{1,50} \b, size = %s x
184 >>>&0 regex =[0-9]{1,50} \b %s
189 # skip DROID x-fmt-164-signature-id-583.pbm with ten 0 digits
194 !:mime image/x-portable-bitmap
206 !:mime image/x-portable-graymap
214 !:mime image/x-portable-pixmap
222 !:mime image/x-portable-bitmap
230 !:mime image/x-portable-greymap
238 !:mime image/x-portable-pixmap
241 # URL: https://en.wikipedia.org/wiki/Netpbm#PAM_graphics_format
245 # skip DROID fmt-405-signature-id-589.pam by looking for character like New Line
249 !:mime image/x-portable-arbitrarymap
258 # From: bryanh@giraffe-data.com (Bryan Henderson)
272 !:mime image/x-niff
275 # (CIFF) file. These are apparently all little-endian.
279 !:mime image/x-canon-crw
285 # These are apparently all little-endian.
289 !:mime image/x-canon-cr2
299 # Works for both the FinePix S2 Pro and the X-T3. Anybody have some more Fuji
301 # -- David Dyer-Bennet <dd-b@dd-b.net> 9-Sep-2021
302 0 string FUJIFILMCCD-RAW Fujifilm RAF raw image data
303 !:mime image/x-fuji-raf
311 0 string MM\x00\x2a TIFF image data, big-endian
316 0 string II\x2a\x00 TIFF image data, little-endian
345 >>>8 uleshort 3 \bbi-level group 3
346 >>>8 uleshort 4 \bbi-level group 4
351 >>>8 uleshort 9 \bJBIG, ITU-T T.85
352 >>>8 uleshort 0xa \bJBIG, ITU-T T.43
353 >>>8 uleshort 0x7ffe \bNeXT RLE 2-bit
358 >>>8 uleshort 0x8081 \bRLE (High-Res Cont-Tone)
406 >>8 uleshort 1 \bupper-left
407 >>8 uleshort 3 \blower-right
408 >>8 uleshort 6 \bupper-right
409 >>8 uleshort 8 \blower-left
461 >0 uleshort 0x8825 \b, GPS-Data
467 0 string MM\x00\x2b Big TIFF image data, big-endian
469 0 string II\x2b\x00 Big TIFF image data, little-endian
476 # 137 P N G \r \n ^Z \n [4-byte length] I H D R [HEAD data] [HEAD crc] ...
480 0 name png-ihdr
483 >8 ubyte x %d-bit
490 >12 ubyte 0 non-interlaced
498 >16 use png-ihdr
506 >>32 use png-ihdr
513 !:mime image/x-unknown
518 !:mime image/x-unknown
524 !:mime image/x-unknown
547 # ITC (CMU WM) raster files. It is essentially a byte-reversed Sun raster,
552 >12 ulelong >0 %d-bit
566 !:mime image/x-miff
577 # ImageMagick-7.0.9-2/Magick++/demo/smile_anim.miff
579 >>>>0 string >\0 '%-.14s'
581 # Reference: https://imagemagick.org/script/magick-vector-graphics.php
583 # Note: all white-spaces between commands are ignored
586 >5 search/3 graphic-context ImageMagick Vector Graphic
587 # TODO: look for dangerous commands like CVE-2016-3715
589 !:mime image/x-mvg
594 >4 long 1 \b, rectangular 24-bit
595 >4 long 2 \b, rectangular 8-bit with colormap
596 >4 long 3 \b, rectangular 32-bit (24-bit with matte)
598 # FIG (Facility for Interactive Generation of figures), an object-based format
600 # https://en.wikipedia.org/wiki/Xfig
602 # https://web.archive.org/web/20070920204655/http://epb.lbl.gov/xfig/fig-format.html
606 # verified by `fig2mpdf -v bootloader.fig && file bootloader.pdf`
608 # GRR: with --keep-going option the line above gives duplicate messages
610 >&0 use image-xfig
611 # binary data variant with non ASCII text characters like Control-A or �C in thermostat.fig
613 >&0 use image-xfig
615 0 name image-xfig
618 # https://reposcope.com/mimetype/image/x-xfig
619 !:mime image/x-xfig
623 # some times after version text like: "Produced by xfig version 3.2.5-alpha5"
631 # http://en.wikipedia.org/wiki/Deskmate
632 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/d/dm-fig.trid.xml
636 #!:mime application/octet-stream
637 !:mime image/x-deskmate-fig
640 # "Cabri 3D Figure" by TrID fig-cabri.trid.xml
641 # "Playmation Figure" by TrID fig-playmation.trid.xml
657 # https://en.wikipedia.org/wiki/Computer_Graphics_Metafile
658 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/cgm-ct.trid.xml
659 # http://standards.iso.org/ittf/PubliclyAvailableStandards/c032381_ISO_IEC_8632-4_1999(E).zip
662 # verified by LibreOffice and partly by XnView `nconvert -info *.CGM`
665 # skip SOME DROID fmt-301-signature-id-359.cgm fmt-301-signature-id-361.cgm fmt-302-signature-id-36…
666 # fmt-302-signature-id-365.cgm x-fmt-142-signature-id-350.cgm x-fmt-142-signature-id-351.cgm
668 # skip other versions of DROID fmt-301-signature-id-359.cgm fmt-301-signature-id-361.cgm fmt-302-si…
669 # fmt-302-signature-id-365.cgm x-fmt-142-signature-id-350.cgm x-fmt-142-signature-id-351.cgm
682 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/cgm-bin.trid.xml
683 # https://standards.iso.org/ittf/PubliclyAvailableStandards/c032380_ISO_IEC_8632-3_1999(E).zip
685 # verified by LibreOffice and partly by XnView `nconvert -info *.CGM`
688 # skip SOME DROID fmt-303-signature-id-368.cgm fmt-304-signature-id-369.cgm fmt-305-signature-id-37…
699 >>>&-1 ubeshort >1 \b, version %u
704 # string like: 'HiJaak 2' 'Example 1' 'sahara.cgm' 'MASTERCLIPS--Art Of Business '
713 # 11111 binary (decimal 31) in the parameter field indicates that the command is in long-form
715 # bit 15 is partition flag with 1 for 'not-last' partition and 0 for 'last' partition
734 >>>-2 ubeshort !0x0040 \b, NOT_FOUND_END_METAFILE
736 # MGR bitmaps (Michael Haardt, u31b3hs@pool.informatik.rwth-aachen.de)
737 0 string yz MGR bitmap, modern format, 8-bit aligned
738 0 string zz MGR bitmap, old format, 1-bit deep, 16-bit aligned
739 0 string xz MGR bitmap, old format, 1-bit deep, 32-bit aligned
756 # Note: verified by XnView command `nconvert -fullinfo *.EPA`
758 !:mime image/x-award-bioslogo
761 !:mime image/x-award-bioslogo
764 # Note: by bitmap-awbm-v1x1009.trid.xml called "Award BIOS logo bitmap (128x126) (v1)"
765 # verified by RECOIL `recoil2png -o tmp.png IO.EPA; file tmp.png`
767 !:mime image/x-award-bioslogo
772 # http://biosgfx.narod.ru/abr-2/
774 # Note: by bitmap-awbm.trid.xml called "Award BIOS logo bitmap (v2)"
777 !:mime image/x-award-bioslogo2
778 #!:mime image/x-award-bmp
795 # https://en.wikipedia.org/wiki/BMP_file_format#DIB_header_.\
799 # verified by ImageMagick version 6.8.9-8 command `identify *.dib`
803 !:mime image/x-ms-bmp
811 # compression method: 0~no 1~RLE 8-bit/pixel 3~Huffman 1D
825 # Reference: http://csbruce.com/cbm/postings/csc19950906-1.txt
827 # defs/b/bitmap-vbm.trid.xml
828 # defs/b/bitmap-vbm-v3.trid.xml
830 # verified by RECOIL `recoil2png -o tmp.png coke_can.vbm; file tmp.png`
834 0 name bitmap-vbm
836 !:mime image/x-commodore-vbm
841 # width of the image in Hi/Lo format
847 # data-encoding type: 0~uncompressed 1~RLE-compressed
849 >>>8 ubyte 1 \b, RLE-compressed
862 >>>0 use bitmap-bmp
865 >>>0 use bitmap-vbm
870 >>>0 use bitmap-vbm
873 >>>0 use bitmap-bmp
876 >>0 use bitmap-bmp
877 0 name bitmap-bmp
898 # http://entropymine.com/jason/bmpsuite/bmpsuite/q/pal8os2v2-16.bmp
899 # Note: by bitmap-bmp-v2o.trid.xml called "Windows Bitmap (v2o)"
978 # jump 4 bytes before end of file/header to skip fmt-116-signature-id-118.dib
980 #>>(2.l-4) ulong x PC bitmap, Windows 3.x format
986 # 320 x 400 https://en.wikipedia.org/wiki/LOGO.SYS
990 # compression method 2~RLE 4-bit/pixel implies also extension rle
996 # https://en.wikipedia.org/wiki/Favicon
998 # https://www.politi-kdigital.de/favicon.ico
1011 # compression method: 0~no 1~RLE 8-bit/pixel 2~RLE 4-bit/pixel 3~Huffman 1D 6~RGBA bit field masks
1037 # number of bits per pixel (color depth); found 4 8 16 24 32 1 (fmt-119-signature-id-121.bmp) 0 (rg…
1045 # offBits; offset to bitmap data like: 8A 47A ABABABAB (fmt-119-signature-id-121.bmp)
1068 # Note: verified by command like `deark -l -d3 OS2MEMU.ICO`
1073 #>>(2.l-4) ubelong x End of header is OK!
1074 !:mime image/x-os2-ico
1081 # offBits; offset in bytes to the beginning of the bit-map pel data like 20h
1091 !:mime image/x-os2-ico
1129 # skip many Corel Photo-Paint image "CPT9FILE" by checking for positive bits offset
1131 # skip CPU-Z Report by checking for valid dib header sizes 12 or 64
1133 >>>0 use os2-ptr
1135 >>>0 use os2-ptr
1137 0 name os2-ptr
1140 !:mime image/x-ibm-pointer
1181 !:mime image/x-os2-graphics
1196 # no *.bga examples found https://www.openwith.org/file-extensions/bga/1342
1205 # no white-black pointer found
1214 # http://mark0.net/download/triddefs_xml.7z/defs/b/bitmap-xpm.trid.xml
1215 # Note: called "X PixMap bitmap" by TrID and "X-Windows Pixmap Image" by DROID via PUID x-fmt/208
1218 # 9 byte c-comment "/* XPM */" not at the beginning like: mozicon16.xpm mozicon50.xpm (thunderbird)
1220 # skip DROID x-fmt-208-signature-id-620.xpm by looking for char array without explict length
1221 # and match mh-logo.xpm (emacs)
1223 >>>0 use xpm-image
1224 # non standard because no 9 byte c-comment "/* XPM */" like: logo.xpm in qemu package
1229 # https://www.clamav.net/downloads/production/clamav-0.104.2.tar.gz
1230 # clamav-0.104.2\libclammspack\mspack\debug.c
1232 >>>>0 use xpm-image
1234 0 name xpm-image
1237 # https://reposcope.com/mimetype/image/x-xpixmap
1239 #!:mime image/x-xpm
1240 !:mime image/x-xpixmap
1249 >>&0 regex/8 [0-9]{1,5} \b, %s
1251 >>>&0 regex/8 [0-9]{1,5} x %s
1253 >>>>&0 regex/12 [0-9]{1,9} x %s
1255 >>>>>&0 regex/14 [0-9]{1,2} \b, %s chars/pixel
1256 # non standard because not starting with 9 byte c-comment "/* XPM */"
1267 >10 ubyte&0x2 =0x2 \b, no background
1275 0 string Imagefile\ version- iff image data
1283 >12 ubelong >0 %d-bit,
1307 >4 ubeshort x \b, %d-D
1334 # (FITS floating point formats are big-endian.)
1338 >109 string 8 \b, 8-bit, character or unsigned binary integer
1339 >108 string 16 \b, 16-bit, two's complement binary integer
1340 >107 string \ 32 \b, 32-bit, two's complement binary integer
1341 >107 string -32 \b, 32-bit, floating point, single precision
1342 >107 string -64 \b, 64-bit, floating point, double precision
1345 0 string This\ is\ a\ BitMap\ file Lisp Machine bit-array-file
1347 # From SunOS 5.5.1 "/etc/magic" - appeared right before Sun raster image
1353 # URL: https://en.wikipedia.org/wiki/DICOM#Data_format
1360 # XWD - X Window Dump file.
1363 # http://mark0.net/download/triddefs_xml.7z/defs/x/xdm-x11.trid.xml
1364 # Note: called "X-Windows Screen Dump (X11)" by TrID and
1365 # "X-Windows Screen Dump" version X11 by DROID via PUID fmt/483
1366 # verfied by XnView `nconvert -in xwd -info *`
1367 # and ImageMagick 6.9.11 `identify -verbose *` as XWD X Windows system window dump
1368 # and `xwud -in fig41.wxd -dumpheader`
1374 # of the header, which is at least 25 4-byte longs, and the one at offset 8
1379 # pixmap_format; Pixmap format; 0~1-bit (XYBitmap) format 1~single-plane (XYPixmap) 2~bitmap with t…
1381 # pixmap_depth; Pixmap depth; value 1 - 32
1385 # skip DROID fmt-401-signature-id-618.xwd by test for existing border field
1386 >>>>96 ubelong x X-Window screen dump image data, version X11
1388 # https://reposcope.com/mimetype/image/x-xwindowdump
1389 !:mime image/x-xwindowdump
1392 # https://www.xnview.com/en/image_formats/ NO example with x11 suffix FOUND!
1396 # file comment if header > 100; so not in MARBLES.XWD and hardcopy-x-window-v11.xwd
1400 # pixmap_width; pixmap width like: 576 800 1014 1280 1419 NOT -1414812757=abABabABh
1402 # pixmap_height; pixmap height like: 449 454 600 704 720 1001 1024 NOT -1414812757=abABabABh
1406 # XOffset; Bitmap X offset; pixel numbers to ignore at the beginning of each scan-line
1412 # BitmapBitOrder; bit-order of image data; apparently same as ByteOrder
1416 # BitsPerPixel; Bits per pixel: 1~StaticGray and GrayScale 2-15~StaticColor and PseudoColor 16,24,3…
1446 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/x/xdm-x10.trid.xml
1447 # Note: called "X-Windows Screen Dump (X10)" by TrID and
1448 # "X-Windows Screen Dump" version X10 by DROID via PUID x-fmt/300
1449 # verfied by XnView `nconvert -in xwd -info *`
1454 # skip DROID x-fmt-300-signature-id-619.xdm by test existing border field
1455 >>36 ubeshort x X-Window screen dump image data, version X10
1456 !:mime image/x-xwindowdump
1468 # PixmapFormat; pixmap format like: 1~bitmap with two or more planes (ZPixmap) 0~single-plane bitma…
1483 # EntryNumber; number of the color-map entry like: 0
1485 # Red; red-channel value
1487 # Green; green-channel value
1489 # Blue; blue-channel value
1494 # PDS - Planetary Data System
1529 # bitmap-pi2-degas.trid.xml bitmap-pi3-degas.trid.xml
1530 # bitmap-pc1-degas.trid.xml bitmap-pc2-degas.trid.xml bitmap-pc3-degas.trid.xml
1532 # `deark -m degas -l -d2 ataribak.pi1`
1533 # XnView `nconvert -fullinfo *.p??`
1534 # DEGAS low-res uncompressed bitmap *.pi1
1536 # skip some ISO 9660 CD-ROM filesystems like plpbt.iso by test for 4 non black colors in palette en…
1541 #>>>-0 offset x FILE_SIZE=%lld
1542 # standard DEGAS low-res uncompressed bitmap *.pi1 with file size 32034
1543 >>>-0 offset =32034
1546 >>>>0 use degas-bitmap
1547 # about 61 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 32066
1548 >>>-0 offset =32066
1550 >>>>0 use degas-bitmap
1551 # about 55 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 32128
1552 >>>-0 offset =32128
1554 >>>>0 use degas-bitmap
1555 # 1 DEGAS Elite low-res uncompressed bitmap *.pi1 with file size 44834
1556 >>>-0 offset =44834
1558 >>>>0 use degas-bitmap
1559 # DEGAS mid-res uncompressed bitmap *.pi2 (strength=50) after GEM Images like:
1563 # skip many control files like gnucash-4.8.setup.exe.aria2 by test for non black in 4 palette entri…
1565 # skip control file load-v0001.aria2 and many GEM Image data like
1568 # standard DEGAS mid-res uncompressed bitmap *.pi2 with file size 32034
1569 >>-0 offset =32034
1571 >>>0 use degas-bitmap
1572 # few DEGAS Elite mid-res uncompressed bitmap *.pi2 with file size 32066
1573 >>-0 offset =32066
1575 >>>0 use degas-bitmap
1576 # DEGAS high-res uncompressed bitmap *.pi3
1580 # skip few Adobe PhotoShop Brushes like Faux-Spitzen.abr by check
1581 # for invalid Adobe PhotoShop Brush UTF16-LE string length
1584 >>>0 use degas-bitmap
1585 # Adobe PhotoShop Brush UTF16-LE string length 15 "Gitter - klein " 8 "Kreis 1 "
1590 # maybe last character of Adobe PhotoShop Brush UTF16-LE string and terminating nul char like
1591 # 006e0000 for n in "Faux-Spitzen.abr" 00310000 for 1 in "Verschiedene Spitzen.abr"
1595 # skip many Adobe Photoshop Color swatch (ANPA-Farben.aco TOYO-Farbsystem.aco) with invalid 3rd col…
1597 # skip few Adobe Photoshop Color swatch (FOCOLTONE-Farben.aco "PANTONE process coated.aco") with in…
1600 >>>>>>>0 use degas-bitmap
1601 # test for last character of Adobe PhotoShop Brush UTF16-LE string and terminating nul char
1604 >>>>>&-4 ubelong&0x00FF0000 <0x00200000
1605 >>>>>>0 use degas-bitmap
1606 # last character of Adobe PhotoShop Brush UTF16-LE note
1607 #>>>>>&-4 ubelong&0x00FF0000 >0x001F0000 \b, THAT IS ABR
1608 # DEGAS low-res compressed bitmap *.pc1 like: BATTLSHP.PC1 GNUCHESS.PC1 MEDUSABL.PC1 MOONLORD.PC1 W…
1612 # skip CRI ADX ADPCM audio (R04HT.adx R03T-15552.adx) with 44100 Hz misinterpreted as 5th color ent…
1614 # skip few (fmt-840-signature-id-1195.adx fmt-840-signature-id-1199.adx) by test for 4 first non bl…
1616 >>>>0 use degas-bitmap
1617 # DEGAS mid-res compressed bitmap *.pc2 like: abydos.pc2 ARTIS3.PC2 SMTHDRAW.PC2 STAR_2K.PC2 TX2_DE…
1621 # skip some (95/1369) PostScript Type 1 font (fmt-525-signature-id-816.pfb LUXEMBRG.PFB) with inval…
1623 >>>0 use degas-bitmap
1624 # DEGAS high-res compressed bitmap *.pc3 like: abydos.pc3 COYOTE.PC3 ELEPHANT.PC3 TX2_DEMO.PC3 SMTH…
1628 >>0 use degas-bitmap
1630 0 name degas-bitmap
1632 #!:mime application/octet-stream
1633 !:mime image/x-atari-degas
1711 # channel_delay[4]; 128 - channel delay, timebase 1/60 s
1716 # https://recoil.sourceforge.net/formats.html#Atari-8-bit
1717 # Reference: https://sourceforge.net/projects/recoil/files/recoil/6.3.4/recoil-6.3.4.tar.gz
1718 # recoil-6.3.4/recoil.c
1719 # http://mark0.net/download/triddefs_xml.7z/defs/b/bitmap-ged.trid.xml
1723 #!:mime application/octet-stream
1724 !:mime image/x-atari-ged
1729 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/b/bitmap-b_w.trid.xml
1731 # verfied by XnView `nconvert -fullinfo "MAEDCHEN.B&W"`
1733 !:mime image/x-ilab
1767 # https://web.archive.org/web/20100206055706/http://www.qzx.com/pc-gpe/pcx.txt
1776 !:mime image/x-pcx
1784 >>>>6 uleshort x %d] -
1788 >>>>3 ubyte x %d-bit
1801 # Reference: https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
1802 # Note: verfied by XnView `nconvert -fullinfo *.psd *.psb *.pdd`
1803 # and ImageMagick `identify -verbose *.pdd`
1805 # skip DROID x-fmt-92-signature-id-277.psd by checking valid width
1820 # width in pixels: 1-30000 1-300000 for PSB
1839 >>22 beshort x %d-bit channel
1842 # https://download.imagemagick.org/ImageMagick/download/ImageMagick-7.0.11-11.zip
1843 # ImageMagick-7.0.11-11\PerlMagick\t\input.psd
1849 # URL: https://www.adobe.com/devnet-apps/photoshop/fileformatashtml/
1855 # skip few Atari DEGAS med-res bitmap (DIAGRAM1.PI2) and many ISO 9660 CD-ROM by check for invalid …
1857 # skip few Targa (bmpsuite-15col.tga rgb24_top_left_colormap.tga) by check for invalid high color s…
1867 >>>>>>>0 use adobe-aco
1870 # skip many (74/176) Atari DEGAS hi-res bitmap (*.PI3) by check for invalid low color name length (…
1872 >>>>>>>>0 use adobe-aco
1879 >>>>>>>0 use adobe-aco
1882 # skip few Atari DEGAS hi-res bitmap (pal1wb-blue.pi3) and few ABR by check for invalid "high" nil …
1884 >>>>>>>0 use adobe-aco
1886 0 name adobe-aco
1888 #!:mime application/octet-stream
1889 !:mime application/x-adobe-aco
1902 >>4 use aco-color
1905 >>>>14 use aco-color
1908 >>4 use aco-color-v2
1913 >>>>>&10 use aco-color-v2
1915 0 name aco-color
1945 0 name aco-color-v2
1946 >0 use aco-color
1950 >>12 ubeshort-1 x \b, %u chars
1951 # len words; UTF-16 representation of the color name like: "DIC 1s" "PANTONE Process Yellow PC"
1956 # URL: https://en.wikipedia.org/wiki/Xv_(software)
1961 !:mime image/x-xv-thumbnail
1965 # NITF is defined by United States MIL-STD-2500A
1975 # http://www.atari-wiki.com/?title=IMG_file (XIMG, STTT)
2003 !:mime image/x-gem
2030 # pattern_size 1-8. 2 for GEM Paint
2049 >>26 ubyte 8 8-bit
2050 >>26 ubyte 16 16-bit
2126 # Squeak images and programs - etoffi@softhome.net
2131 # Author: Hans-Joachim Baader <hjb@pro-linux.de>
2132 0 string PaRtImAgE-VoLuMe PartImage
2134 >>0x0060 ulelong >-1 volume %d
2148 # DCX is multi-page PCX, using a simple header of up to 1024
2153 0 ulelong 987654321 DCX multi-page
2154 # http://www.nationalarchives.gov.uk/pronom/x-fmt/348
2155 !:mime image/x-dcx
2170 # http://www.kodak.com/US/en/motion/support/dlad/
2176 # Bio-Rad .PIC is an image format used by microscope control systems
2179 # BOOL values are two-byte integers; use them to rule out false positives.
2181 # Samples: https://www.loci.wisc.edu/software/sample-data
2184 >>54 uleshort 12345 Bio-Rad .PIC Image File
2214 !:mime image/x-exr
2232 >>&14 ulelong x %d)-
2237 >>&14 ulelong x %d)-
2248 # ANSI/SMPTE 268M-1994, SMPTE Standard for File Format for Digital
2249 # Moving-Picture Exchange (DPX), v1.0, 18 February 1994
2252 0 string SDPX DPX image data, big-endian,
2253 !:mime image/x-dpx
2255 0 string XPDS DPX image data, little-endian,
2256 !:mime image/x-dpx
2277 # URL: https://en.wikipedia.org/wiki/NetCDF
2282 # "netCDF-3 Classic" by DROID via PUID fmt/282
2285 # skip DROID fmt-282-signature-id-298.nc by test for more content bytes
2288 # https://reposcope.com/mimetype/application/x-netcdf
2289 !:mime application/x-netcdf
2292 # https://www.file-extensions.org/cdf-file-extension-unidata-network-common-data-form
2295 # 64-bit offset netcdf Classic https://www.unidata.ucar.edu/software/netcdf/docs/file_format_specif…
2296 # Note: called "netCDF-3 64-bit" by DROID via PUID fmt/283
2298 # skip DROID fmt-283-signature-id-299.nc by test for more content bytes
2299 >3 uleshort >0 NetCDF Data Format data (64-bit offset)
2301 !:mime application/x-netcdf
2305 # https://en.wikipedia.org/wiki/Common_Data_Format
2307 !:mime application/x-cdf
2310 !:mime application/x-cdf
2313 !:mime application/x-cdf
2318 # https://en.wikipedia.org/wiki/Hierarchical_Data_Format
2319 …://portal.hdfgroup.org/download/attachments/52627880/HDF5_File_Format_Specification_Version-3.0.pdf
2321 !:mime application/x-hdf
2324 #!:mime application/x-hdf
2325 !:mime application/x-hdf5
2328 # skip Matlab v5 mat-file testhdf5_7.4_GLNX86.mat handled by ./mathematica
2330 #!:mime application/x-hdf
2331 !:mime application/x-hdf5
2334 #!:mime application/x-hdf
2335 !:mime application/x-hdf5
2338 #!:mime application/x-hdf
2339 !:mime application/x-hdf5
2342 #!:mime application/x-hdf
2343 !:mime application/x-hdf5
2346 # From: Tobias Burnus <burnus@net-b.de>
2353 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/b/bmf-corel.trid.xml
2357 !:mime image/x-corel-bmf
2363 !:mime image/x-cpi
2378 # Applied Images - Image files from Cytovision
2387 # Wavelet Scalar Quantization format used in gray-scale fingerprint images
2399 0 string/b PCO- PCO B16 image data
2403 >20 ulelong -1 \b, extended header
2422 !:mime image/x-polar-monitor-bitmap
2429 # Sony SRF raw image (image/x-sony-srf)
2434 #!:mime image/x-garmin-srf
2447 #!:mime application/octet-stream
2448 !:mime image/x-ulead-pe3
2454 >>&-1 string x "%s"
2468 #!:mime application/octet-stream
2469 !:mime image/x-ulead-pe4
2474 >>&-6 use jpeg
2477 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pe3-imaginfo.trid.xml
2481 >>0 use ulead-imaginfo
2483 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pe4-imaginfo.trid.xml
2487 >>0 use ulead-imaginfo
2489 0 name ulead-imaginfo
2491 #!:mime application/octet-stream
2492 !:mime image/x-ulead-imaginfo
2506 # by looking for driver letter in range A-Z
2507 >>>&-1 ubyte >0x40
2509 >>>>&-5 pstring/l >0 \b, "%s"
2511 >>>&-1 default x
2514 >>>>>&-4 pstring/l >0 \b, "%s"
2519 >>>>&-4 pstring/l >0 \b, "%s"
2523 >>&1 string x with %-.3s images
2525 # URL: https://en.wikipedia.org/wiki/Ulead_Systems
2526 # https://www.file-extensions.org/pst-file-extension-ulead-pattern-image-format
2527 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/p/pst-ulead.trid.xml
2533 #!:mime application/octet-stream
2534 !:mime image/x-ulead-pst
2542 # URL: http://webcvs.freedesktop.org/mime/shared-mime-info/freedesktop.org.xml.in?view=markup
2549 0 string MMOR Olympus ORF raw image data, big-endian
2550 !:mime image/x-olympus-orf
2551 0 string IIRO Olympus ORF raw image data, little-endian
2552 !:mime image/x-olympus-orf
2553 0 string IIRS Olympus ORF raw image data, little-endian
2554 !:mime image/x-olympus-orf
2568 # URL: https://www.mpi-inf.mpg.de/resources/pfstools/pfs_format_spec.pdf
2573 #!mime image/x-pfs
2574 >1 regex [0-9]*\ \b, %s
2575 >>1 regex \ [0-9]{4} \bx%s
2578 # URL: https://www.photofo.com/downloads/x3f-raw-format.pdf
2583 !:mime image/x-x3f
2592 !:mime image/x-paintnet
2596 0 string \x46\x4d\x52\x00 ISO/IEC 19794-2 Format Minutiae Record (FMR)
2600 90 ubequad 0x574D50484F544F00 JPEG-XR Image
2620 >>101 ubeshort&0xf 0x0 \b1-WHITE=1
2622 >>101 ubeshort&0xf 0x2 \b16
2623 >>101 ubeshort&0xf 0x3 \b16-SIGNED
2624 >>101 ubeshort&0xf 0x4 \b16-FLOAT
2626 >>101 ubeshort&0xf 0x6 \b32-SIGNED
2627 >>101 ubeshort&0xf 0x7 \b32-FLOAT
2630 >>101 ubeshort&0xf 0xa \b5-6-5
2635 >>101 ubeshort&0xf 0xf \b1-BLACK=1
2658 # URL: https://en.wikipedia.org/wiki/Apple_Icon_Image_format
2660 !:mime image/x-icns
2673 # Note: called as "PSX TIM *bpp bitmap" by bitmap-tim-*.trid.xml
2674 # verified as "TIM PSX" by XnView `nconvert -fullinfo *.tim` and
2675 # by RECOIL `recoil2png -o TMP.PNG input.tim; file TMP.PNG` and often
2676 # as "PSX TIM" by ImageMagick version 7.1.0-10 command `identify *.tim`
2689 !:mime image/x-sony-tim
2693 >>4 ulelong&0x07 0x0 4-Bit,
2694 >>4 ulelong&0x07 0x1 8-Bit,
2696 >>4 ulelong 0x2 15-Bit,
2697 >>4 ulelong 0x3 24-Bit,
2699 >>4 ulelong&0x07 0x4 Mixed-Bit,
2727 >>>>4 ulelong 0x2
2765 # URL: https://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphic…
2768 0 name ms-directdraw-dx10
2944 # URL: https://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphic…
2947 0 name ms-directdraw-surface
2951 >0x58 ulelong >0 \b, %u-bit color
2956 >>>0x80 use ms-directdraw-dx10
2958 >0x50 ulelong&0x2 0x2 \b, alpha only
2969 # NOTE: 15-bit color formats usually have 16-bit listed as the color depth.
3036 # Less common 32-bit color formats.
3048 # URL: https://msdn.microsoft.com/library/default.asp?url=/library/en-us/directx9_c/directx/graphic…
3052 >0 use ms-directdraw-surface
3057 # - https://fabiensanglard.net/Mykaruga/tools/segaPVRFormat.txt
3058 # - https://github.com/yazgoo/pvrx2png
3059 # - https://github.com/nickworonekin/puyotools
3062 0 name sega-pvr-image-header
3078 >0x09 ubyte 0x05 \b, 8-bit CLUT twiddled
3079 >0x09 ubyte 0x06 \b, 4-bit CLUT twiddled
3080 >0x09 ubyte 0x07 \b, 8-bit direct twiddled
3081 >0x09 ubyte 0x08 \b, 4-bit direct twiddled
3092 >>0x20 use ms-directdraw-surface
3094 >>0 use sega-pvr-image-header
3100 >>>0x20 use ms-directdraw-surface
3102 >>>0x10 use sega-pvr-image-header
3106 0 name sega-gvr-image-header
3123 >0x10 use sega-gvr-image-header
3128 >>0x10 use sega-gvr-image-header
3134 >>0x10 use sega-gvr-image-header
3167 >4 ulelong 0x78563412 little-endian,
3168 >4 ulelong 0x12345678 big-endian,
3179 0 name khronos-ktx-glEnum
3236 # Endian-specific KTX header.
3238 0 name khronos-ktx-endian-header
3243 >>8 use khronos-ktx-glEnum
3245 >>12 use khronos-ktx-glEnum
3250 >12 ulelong 0x04030201 (little-endian)
3251 >>16 use khronos-ktx-endian-header
3252 >12 ubelong 0x04030201 (big-endian)
3253 >>16 use \^khronos-ktx-endian-header
3258 # Reference: http://github.khronos.org/KTX-Specification/
3261 0 name khronos-ktx2-supercompression
3268 0 name khronos-ktx2-vkFormat
3527 >>44 use khronos-ktx2-supercompression
3529 >>12 use khronos-ktx2-vkFormat
3534 # - https://developer.valvesoftware.com/wiki/Valve_Texture_Format
3537 0 name vtf-image-format
3576 >0x34 ulelong >-1 \b,
3577 >>0x34 use vtf-image-format
3590 # - https://stackoverflow.com/questions/22600678/determine-internal-format-of-given-astc-compressed
3591 # - https://stackoverflow.com/a/22682244
3596 # X, Y, and Z dimensions are stored as 24-bit LE.
3597 # Pretend it's 32-bit and mask off the high byte.
3621 # https://github.com/ax3l/lines-are-beautiful
3623 # reMarkable-lines-file-format.html#what-to-do-next
3633 # newer per-page files for the reMarkable
3644 # - http://cdn.imgtec.com/sdk-documentation/PVR+File+Format.Specification.pdf
3647 0 name pvr3-pixel-format
3652 >0 ulelong 4 PVRTC-II 2bpp
3653 >0 ulelong 5 PVRTC-II 4bpp
3706 >>0x08 use pvr3-pixel-format
3725 >>0x08 use pvr3-pixel-format
3741 # - https://github.com/Cxbx-Reloaded/Cxbx-Reloaded/blob/develop/src/core/hle/D3D8/XbD3D8Types.h
3744 0 name xbox-xpr-pixel-format
3803 >>0x19 use xbox-xpr-pixel-format
3829 # https://en.wikipedia.org/wiki/Apple_QuickTake
3848 # URL: http://fileformats.archiveteam.org/wiki/Corel_Photo-Paint_image
3849 # Reference: http://blog.argasinski.eu/wp-content/uploads/2011/08/cpt-specification-0.01.pdf
3851 >4 string FILE Corel Photo-Paint image, version
3854 !:mime image/x-corel-cpt
3860 >>>>&(0x34.l-1) ulelong x %u
3876 # palette_length number of colors * 3 in case of 8-bit RGB paletted image
3886 # bit 1 in CPT file flags: UCS-2 file comment present
3890 # UCS-2 file comment
3892 # if no UCS-2 is present show ANSI file comment[112] if available
3894 >>>0x3C string >\0 "%-.112s"
3915 # bits 3-7 in CPT file flags: unknown, seem to be often 0
3921 # blocks_array_offset is always 0 for CPT7 and CPT8 files created by PP7-PP8
3933 #>>>0x154 use color-profile
3936 # https://en.wikipedia.org/wiki/CorelDRAW
3937 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/cdr-gen.trid.xml
3939 # version til 2 WL-based; from version 3 til 13 handled by ./riff and from 14 zip based handled by…
3941 #!:mime image/x-coreldraw
3942 !:mime application/vnd.corel-draw
3944 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/cdr-corel-10.trid.xml
3947 # only DROID fmt-467-signature-id-726.cdr example
3950 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/c/cdr-corel-20.trid.xml
3961 # - https://github.com/BinomialLLC/crunch/blob/44c8402e24441c7524ca364941fd224ab3b971e9/inc/crn_dec…
3983 # - https://github.com/BinomialLLC/basis_universal/blob/master/spec/basis_spec.txt
3991 >>0x15 uleshort&0x02 2 \b, Y-flipped
3993 # MIME registration: https://www.iana.org/assignments/media-types/model/e57
3996 # https://www.ri.cmu.edu/pub_files/2011/1/2011-huber-e57-v3.pdf
3997 0 string ASTM-E57 ASTM E57 three-dimensional model
4007 # Based on spec v1.0 (2022.01.05) <https://qoiformat.org/qoi-specification.pdf>
4011 !:mime image/x-qoi
4031 0 name godot-pixel-format
4074 0 name godot-rescale-display-w
4098 0 name godot-rescale-display-h
4123 # - https://github.com/godotengine/godot/blob/3.3/core/image.h
4124 # - https://github.com/godotengine/godot/blob/3.3/scene/resources/texture.cpp
4125 # - https://github.com/godotengine/godot/blob/3.3/scene/resources/texture.h
4129 !:mime image/x-godot-stex
4134 >>6 use godot-rescale-display-w
4135 >>10 use godot-rescale-display-h
4141 >>16 use godot-pixel-format
4146 # - https://github.com/godotengine/godot/blob/master/core/io/image.h
4147 # - https://github.com/godotengine/godot/blob/master/scene/resources/texture.cpp
4148 # - https://github.com/godotengine/godot/blob/master/scene/resources/texture.h
4152 !:mime image/x-godot-stex
4156 >8 use godot-rescale-display-w
4157 >12 use godot-rescale-display-h
4160 >0x30 use godot-pixel-format
4167 # Reference: http://mark0.net/download/triddefs_xml.7z/defs/i/idf-icedraw.trid.xml
4170 # verified by FFmpeg command `ffprobe ICE-9605.IDF` and `ansilove -s SQ-FORCE.IDF`
4172 #!:mime application/octet-stream
4173 !:mime image/x-idf
4180 0 name rix-header
4208 >4 use rix-header
4216 >3 string Cj 3-4
4217 >3 string Em 5-7
4218 >3 string Fk 8-12