icc 1.8 KB

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