xref: /freebsd/contrib/file/magic/Magdir/icc (revision b6cee71de37d56e36dbc118e2d9b03e7cece5709)
1*b6cee71dSXin LI
2*b6cee71dSXin LI#------------------------------------------------------------------------------
3*b6cee71dSXin LI# $File: icc,v 1.1 2013/01/08 01:43:18 christos Exp $
4*b6cee71dSXin LI# icc:  file(1) magic for International Color Consortium file formats
5*b6cee71dSXin LI
6*b6cee71dSXin LI#
7*b6cee71dSXin LI# Color profiles as per the ICC's "Image technology colour management -
8*b6cee71dSXin LI# Architecture, profile format, and data structure" specification.
9*b6cee71dSXin LI# See
10*b6cee71dSXin LI#
11*b6cee71dSXin LI#	http://www.color.org/specification/ICC1v43_2010-12.pdf
12*b6cee71dSXin LI#
13*b6cee71dSXin LI# for Specification ICC.1:2010 (Profile version 4.3.0.0).
14*b6cee71dSXin LI#
15*b6cee71dSXin LI# Bytes 36 to 39 contain a generic profile file signature of "acsp";
16*b6cee71dSXin LI# bytes 40 to 43 "may be used to identify the primary platform/operating
17*b6cee71dSXin LI# system framework for which the profile was created".
18*b6cee71dSXin LI#
19*b6cee71dSXin LI# There are other fields that might be worth dumping as well.
20*b6cee71dSXin LI#
21*b6cee71dSXin LI
22*b6cee71dSXin LI# This appears to be what's used for Apple ColorSync profiles.
23*b6cee71dSXin LI# Instead of adding that, Apple just changed the generic "acsp" entry
24*b6cee71dSXin LI# to be for "ColorSync ICC Color Profile" rather than "Kodak Color
25*b6cee71dSXin LI# Management System, ICC Profile".
26*b6cee71dSXin LI# Yes, it's "APPL", not "AAPL"; see the spec.
27*b6cee71dSXin LI36	string		acspAPPL	ColorSync ICC Profile
28*b6cee71dSXin LI!:mime	application/vnd.iccprofile
29*b6cee71dSXin LI
30*b6cee71dSXin LI# Microsoft ICM color profile
31*b6cee71dSXin LI36	string		acspMSFT	Microsoft ICM Color Profile
32*b6cee71dSXin LI!:mime	application/vnd.iccprofile
33*b6cee71dSXin LI
34*b6cee71dSXin LI# Yes, that's a blank after "SGI".
35*b6cee71dSXin LI36	string		acspSGI\ 	SGI ICC Profile
36*b6cee71dSXin LI!:mime	application/vnd.iccprofile
37*b6cee71dSXin LI
38*b6cee71dSXin LI# XXX - is this what's used for the Sun KCMS or not?  The standard file
39*b6cee71dSXin LI# uses just "acsp" for that, but Apple's file uses it for "ColorSync",
40*b6cee71dSXin LI# and there *is* an identified "primary platform" value of SUNW.
41*b6cee71dSXin LI36	string		acspSUNW	Sun KCMS ICC Profile
42*b6cee71dSXin LI!:mime	application/vnd.iccprofile
43*b6cee71dSXin LI
44*b6cee71dSXin LI# Any other profile.
45*b6cee71dSXin LI# XXX - should we use "acsp\0\0\0\0" for "no primary platform" profiles,
46*b6cee71dSXin LI# and use "acsp" for everything else and dump the "primary platform"
47*b6cee71dSXin LI# string in those cases?
48*b6cee71dSXin LI36	string		acsp		ICC Profile
49*b6cee71dSXin LI!:mime	application/vnd.iccprofile
50*b6cee71dSXin LI
51*b6cee71dSXin LI
52