]> granicus.if.org Git - file/commitdiff
Add cups
authorChristos Zoulas <christos@zoulas.com>
Thu, 10 Nov 2011 18:59:54 +0000 (18:59 +0000)
committerChristos Zoulas <christos@zoulas.com>
Thu, 10 Nov 2011 18:59:54 +0000 (18:59 +0000)
magic/Magdir/cups [new file with mode: 0644]
magic/Makefile.am

diff --git a/magic/Magdir/cups b/magic/Magdir/cups
new file mode 100644 (file)
index 0000000..4b6049c
--- /dev/null
@@ -0,0 +1,82 @@
+
+#------------------------------------------------------------------------------
+# $File: dyadic,v 1.5 2010/09/20 18:55:20 rrt Exp $
+# Cups: file(1) magic for the cups raster file format
+# From: Laurent Martelli <martellilaurent@gmail.com>
+# http://www.cups.org/documentation.php/spec-raster.html
+#
+
+# Cups Raster image format, Big Endian
+0      string          RaS             
+!:mime application/vnd.cups-raster
+>3     string          t               Cups Raster version 1, Big Endian
+>3     string          2               Cups Raster version 2, Big Endian
+>3     string          3               Cups Raster version 3, Big Endian
+>280   belong          x               \b, %d
+>284   belong          x               \bx%d dpi
+>376   belong          x               \b, %dx
+>380   belong          x               \b%d pixels
+>388   belong          x               %d bits/color
+>392   belong          x               %d bits/pixel
+>400   belong          0               ColorOrder=Chunky
+>400   belong          1               ColorOrder=Banded
+>400   belong          2               ColorOrder=Planar
+>404   belong          0               ColorSpace=gray
+>404   belong          1               ColorSpace=RGB
+>404   belong          2               ColorSpace=RGBA
+>404   belong          3               ColorSpace=black
+>404   belong          4               ColorSpace=CMY
+>404   belong          5               ColorSpace=YMC
+>404   belong          6               ColorSpace=CMYK
+>404   belong          7               ColorSpace=YMCK
+>404   belong          8               ColorSpace=KCMY
+>404   belong          9               ColorSpace=KCMYcm
+>404   belong          10              ColorSpace=GMCK
+>404   belong          11              ColorSpace=GMCS
+>404   belong          12              ColorSpace=WHITE
+>404   belong          13              ColorSpace=GOLD
+>404   belong          14              ColorSpace=SILVER
+>404   belong          15              ColorSpace=CIE XYZ
+>404   belong          16              ColorSpace=CIE Lab
+>404   belong          17              ColorSpace=RGBW
+>404   belong          18              ColorSpace=sGray
+>404   belong          19              ColorSpace=sRGB
+>404   belong          20              ColorSpace=AdobeRGB
+
+
+# Cups Raster image format, Little Endian
+1      string          SaR             
+>0     string          t               Cups Raster version 1, Little Endian
+>0     string          2               Cups Raster version 2, Little Endian
+>0     string          3               Cups Raster version 3, Little Endian
+!:mime application/vnd.cups-raster
+>280   lelong          x               \b, %d
+>284   lelong          x               \bx%d dpi
+>376   lelong          x               \b, %dx
+>380   lelong          x               \b%d pixels
+>388   lelong          x               %d bits/color
+>392   lelong          x               %d bits/pixel
+>400   lelong          0               ColorOrder=Chunky
+>400   lelong          1               ColorOrder=Banded
+>400   lelong          2               ColorOrder=Planar
+>404   lelong          0               ColorSpace=gray
+>404   lelong          1               ColorSpace=RGB
+>404   lelong          2               ColorSpace=RGBA
+>404   lelong          3               ColorSpace=black
+>404   lelong          4               ColorSpace=CMY
+>404   lelong          5               ColorSpace=YMC
+>404   lelong          6               ColorSpace=CMYK
+>404   lelong          7               ColorSpace=YMCK
+>404   lelong          8               ColorSpace=KCMY
+>404   lelong          9               ColorSpace=KCMYcm
+>404   lelong          10              ColorSpace=GMCK
+>404   lelong          11              ColorSpace=GMCS
+>404   lelong          12              ColorSpace=WHITE
+>404   lelong          13              ColorSpace=GOLD
+>404   lelong          14              ColorSpace=SILVER
+>404   lelong          15              ColorSpace=CIE XYZ
+>404   lelong          16              ColorSpace=CIE Lab
+>404   lelong          17              ColorSpace=RGBW
+>404   lelong          18              ColorSpace=sGray
+>404   lelong          19              ColorSpace=sRGB
+>404   lelong          20              ColorSpace=AdobeRGB
index 5c97a697a837f94045c56a5e3ffb5c063fb50eb2..2d14f69497d34e792d14727f5cda90274c45f2d5 100644 (file)
@@ -1,5 +1,5 @@
 #
-# $File: Makefile.am,v 1.72 2011/08/17 17:37:18 christos Exp $
+# $File: Makefile.am,v 1.73 2011/09/08 21:58:42 christos Exp $
 #
 MAGIC_FRAGMENT_BASE = Magdir
 MAGIC_DIR = $(top_srcdir)/magic
@@ -52,6 +52,7 @@ $(MAGIC_FRAGMENT_DIR)/console \
 $(MAGIC_FRAGMENT_DIR)/convex \
 $(MAGIC_FRAGMENT_DIR)/cracklib \
 $(MAGIC_FRAGMENT_DIR)/ctags \
+$(MAGIC_FRAGMENT_DIR)/cups \
 $(MAGIC_FRAGMENT_DIR)/dact \
 $(MAGIC_FRAGMENT_DIR)/database \
 $(MAGIC_FRAGMENT_DIR)/diamond \