xref: /freebsd/contrib/file/magic/Magdir/pgf (revision cddbc3b40812213ff00041f79174cac0be360a2a)
1
2#------------------------------------------------------------------------------
3# $File: pgf,v 1.2 2017/03/17 21:35:28 christos Exp $
4# pgf: file(1) magic for Progressive Graphics File (PGF)
5#
6# <http://www.libpgf.org/uploads/media/PGF_Details_01.pdf>
7# 2013 by Philipp Hahn <pmhahn debian org>
80 string PGF Progressive Graphics image data,
9!:mime image/x-pgf
10>3	string	2	version %s,
11>3	string	4	version %s,
12>3	string	5	version %s,
13>3	string	6	version %s,
14#	PGFPreHeader
15#>>4	lelong	x	header size %d,
16#	PGFHeader
17>>8	lelong	x	%d x
18>>12	lelong	x	%d,
19>>16	byte	x	%d levels,
20>>17	byte	x	compression level %d,
21>>18	byte	x	%d bpp,
22>>19	byte	x	%d channels,
23>>20	clear	x
24>>20	byte	0	bitmap,
25>>20	byte	1	gray scale,
26>>20	byte	2	indexed color,
27>>20	byte	3	RGB color,
28>>20	byte	4	CYMK color,
29>>20	byte	5	HSL color,
30>>20	byte	6	HSB color,
31>>20	byte	7	multi-channel,
32>>20	byte	8	duo tone,
33>>20	byte	9	LAB color,
34>>20	byte	10	gray scale 16,
35>>20	byte	11	RGB color 48,
36>>20	byte	12	LAB color 48,
37>>20	byte	13	CYMK color 64,
38>>20	byte	14	deep multi-channel,
39>>20	byte	15	duo tone 16,
40>>20	byte	17	RGBA color,
41>>20	byte	18	gray scale 32,
42>>20	byte	19	RGB color 12,
43>>20	byte	20	RGB color 16,
44>>20	byte	255	unknown format,
45>>20	default	x	format
46>>>20	byte	x	\b %d,
47>>21	byte	x	%d bpc
48#	PGFPostHeader
49#	Level-Sizes
50#>>(4.l+4)	lelong x level 0 size: %d
51#>>(4.l+8)	lelong x level 1 size: %d
52#>>(4.l+12)	lelong x level 2 size: %d
53