Color Profile ISO Coated v2 300% (ECI) not found anymore

Dear all, in ConTeXt ver: 2025.04.28 14:29 LMTX fmt: 2025.6.3 the color profile ISO Coated v2 300% (ECI) is not found anymore \setupbackend[ %format=PDF/X-1a:2001, %format=PDF/X-1a:2003, format=PDF/X-3:2002, %Empfehlung von Flyeralarm %format=PDF/X-3:2003, %format=PDF/X-4, %format=PDF/X-4p, intent={ISO Coated v2 300\letterpercent\space (ECI)}] It raises this error. 66 \setupbackend[ 67 %format=PDF/X-1a:2001, 68 %format=PDF/X-1a:2003, 69 format=PDF/X-3:2002, %Empfehlung von Flyeralarm 70 %format=PDF/X-3:2003, 71 %format=PDF/X-4, 72 %format=PDF/X-4p, 73 >> intent={ISO Coated v2 300\letterpercent\space (ECI)}] 74 \stopmode 75 76 %% FOGRA 39 Coated 77 %% Bestimmung der CMYK-Werte mit transicc 78 %% transicc -i srgb_v4_icc_preference.icc -o CoatedFOGRA39.icc 79 %% Rundung wie oben 80 \startmode[fogra39] 81 \doiffileelse{CoatedFOGRA39.icc}{}{\farbprofilnichtgefunden} 82 \definecolor [hs-logoblau] [c=1.000, m=0.735, y=0.279, k=0.160] 83 %% C=100.0000 M=73.4707 Y=27.9103 K=16.0891 mtx-context | fatal error: return code: 1 make: *** [Makefile:45: flyerangebote] Fehler 1 With 2024.11 it still works Any ideas? juh

On 6/3/25 11:41, juh+ntg-context--- via ntg-context wrote:
Dear all,
in ConTeXt ver: 2025.04.28 14:29 LMTX fmt: 2025.6.3 the color profile ISO Coated v2 300% (ECI) is not found anymore [...] Any ideas?
Dear Jan-Ulrich, my guess is that color profiles might be have been replaced. Here there might be some background: https://www.pragma-ade.com/general/manuals/standards.pdf#search=unset In any case, these are the profiles in current latest: $ find context -name *.icc texmf-context/colors/icc/profiles/colo-imp-cgats001compat-v2-micro.icc texmf-context/colors/icc/profiles/colo-imp-isocoated_v2_eci.icc texmf-context/colors/icc/profiles/colo-imp-sgrey-v2-magic.icc texmf-context/colors/icc/profiles/colo-imp-srgb-v2-magic.icc texmf-context/colors/icc/profiles/colo-imp-srgb.icc texmf-context/colors/icc/profiles/colo-imp-sgrey-v4.icc texmf-context/colors/icc/profiles/colo-imp-srgb-v4.icc texmf-context/colors/icc/profiles/colo-imp-default_gray.icc And these are the ones from November 2024 latest: $ find .backup-context/11012024_context/ -name *.icc texmf-context/colors/icc/profiles/colo-imp-isocoated_v2_eci.icc texmf-context/colors/icc/profiles/colo-imp-srgb.icc texmf-context/colors/icc/profiles/colo-imp-srgb_v4_icc_preference.icc texmf-context/colors/icc/profiles/colo-imp-default_gray.icc Just in case it helps, Pablo

Dear Pablo, Am 03.06.25 um 17:36 schrieb Pablo Rodriguez via ntg-context:
my guess is that color profiles might be have been replaced.
Here there might be some background:
https://www.pragma-ade.com/general/manuals/standards.pdf#search=unset
In any case, these are the profiles in current latest:
$ find context -name *.icc texmf-context/colors/icc/profiles/colo-imp-cgats001compat-v2-micro.icc texmf-context/colors/icc/profiles/colo-imp-isocoated_v2_eci.icc texmf-context/colors/icc/profiles/colo-imp-sgrey-v2-magic.icc texmf-context/colors/icc/profiles/colo-imp-srgb-v2-magic.icc texmf-context/colors/icc/profiles/colo-imp-srgb.icc texmf-context/colors/icc/profiles/colo-imp-sgrey-v4.icc texmf-context/colors/icc/profiles/colo-imp-srgb-v4.icc texmf-context/colors/icc/profiles/colo-imp-default_gray.icc
And these are the ones from November 2024 latest:
$ find .backup-context/11012024_context/ -name *.icc texmf-context/colors/icc/profiles/colo-imp-isocoated_v2_eci.icc texmf-context/colors/icc/profiles/colo-imp-srgb.icc texmf-context/colors/icc/profiles/colo-imp-srgb_v4_icc_preference.icc texmf-context/colors/icc/profiles/colo-imp-default_gray.icc
Thanks a lot for your help. I have a lot more profiles in texmf-local, e.g. context/tex/texmf-local/colors/icc/profiles/ISOcoated_v2_300_eci.icc Therefore I also have two colorprofiles.xml find context -name 'colorprofiles.xml' context/tex/texmf-local/colors/icc/context/colorprofiles.xml context/tex/texmf-context/colors/icc/context/colorprofiles.xml The one in texmf-local has the definition for ISO Coated v2 300% (ECI). <profile> 180 <filename>ISOcoated_v2_300_eci.icc</filename> 1 <colorspace>CMYK</colorspace> 2 <class>prtr</class> 3 <id>FOGRA39</id> 4 <info>ISO Coated v2 300% (ECI)</info> 5 <checksum>e14f5db955711d914d877df35ad7a1b5</checksum> 6 <version>24000000</version> 7 <url>http://www.color.org</url> 8 <outputcondition>Offset printing, according to ISO 12647-2:2004/Amd 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A (CMY) and B (K) 9 </profile> Maybe the lookup mechanism for the informations changed between the two version as in 2024 the right profile is found but in current not. Any hints how to match it again? juh

On 6/4/25 08:36, juh+ntg-context--- via ntg-context wrote:
[...] Any hints how to match it again?
Sorry, Jan-Ulrich, it isn’t clear to me what is going on here. The following sample: \setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 (ECI)}] \starttext \null \stoptext gives me the following error: lpdf-fmt.lmt:282: attempt to call a nil value (global 'urls') Line 189 from the same file reads: -- When we have an URL we can assume that embedding is not needed. Line 8 from colorprofiles.xml also reads (as a comment): When the id is "Custom" we assume that embedding is needed. (Also related to line 391 from lpdf-fmt.lmt.) As far as I understand, color profiles with urls aren’t being embedded in the PDF document. For reasons totally unknown to me, lpdf-fmt.lmt has also problems with profiles from http://www.color.org. I’m afraid I cannot help here, Pablo

On 6/4/2025 5:14 PM, Pablo Rodriguez via ntg-context wrote:
On 6/4/25 08:36, juh+ntg-context--- via ntg-context wrote:
[...] Any hints how to match it again?
Sorry, Jan-Ulrich, it isn’t clear to me what is going on here.
The following sample:
\setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 (ECI)}] \starttext \null \stoptext
gives me the following error:
lpdf-fmt.lmt:282: attempt to call a nil value (global 'urls')
Line 189 from the same file reads:
-- When we have an URL we can assume that embedding is not needed.
Line 8 from colorprofiles.xml also reads (as a comment):
When the id is "Custom" we assume that embedding is needed.
(Also related to line 391 from lpdf-fmt.lmt.)
As far as I understand, color profiles with urls aren’t being embedded in the PDF document.
For reasons totally unknown to me, lpdf-fmt.lmt has also problems with profiles from http://www.color.org.
what problem
I’m afraid I cannot help here,
You can move: local function urls(url) ... end to before: local function includeprofile(s) to get rid of the error. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On 6/4/25 19:34, Hans Hagen via ntg-context wrote:
[...] You can move:
local function urls(url) ... end
to before:
local function includeprofile(s)
to get rid of the error. Many thanks for your reply, Hans.
This fixes the issue for me. Jan-Urlich, could you test it yourself? Just in case it might help you, I include a patch below. Many thanks for your help, Pablo Patch: --- lpdf-fmt.lmt 2025-06-05 18:35:30.016927969 +0200 +++ mkxl/lpdf-fmt.lmt 2025-06-05 18:36:27.670594638 +0200 @@ -260,6 +260,23 @@ return lower(file.basename(filename)) end +local function urls(url) + if not url or url == "" then + return nil + else + local u = pdfarray() + for url in gmatch(url,"([^, ]+)") do + if find(url,"^http") then + u[#u+1] = pdfdictionary { + FS = pdfconstant("URL"), + F = pdfstring(url), + } + end + end + return u + end +end + local function includeprofile(s) local filename = s.filename or "" local colorspace = s.colorspace or "" @@ -313,23 +330,6 @@ return defaultprofiles[channel] end -local function urls(url) - if not url or url == "" then - return nil - else - local u = pdfarray() - for url in gmatch(url,"([^, ]+)") do - if find(url,"^http") then - u[#u+1] = pdfdictionary { - FS = pdfconstant("URL"), - F = pdfstring(url), - } - end - end - return u - end -end - local function processprofile(s,spec) -- specification local filename = s.filename or "" local colorspace = lower(s.colorspace or "")

Am 05.06.25 um 18:45 schrieb Pablo Rodriguez via ntg-context:
Patch:
--- lpdf-fmt.lmt 2025-06-05 18:35:30.016927969 +0200 +++ mkxl/lpdf-fmt.lmt 2025-06-05 18:36:27.670594638 +0200 @@ -260,6 +260,23 @@ return lower(file.basename(filename)) end
+local function urls(url) + if not url or url == "" then + return nil + else + local u = pdfarray() + for url in gmatch(url,"([^, ]+)") do + if find(url,"^http") then + u[#u+1] = pdfdictionary { + FS = pdfconstant("URL"), + F = pdfstring(url), + } + end + end + return u + end +end + local function includeprofile(s) local filename = s.filename or "" local colorspace = s.colorspace or "" @@ -313,23 +330,6 @@ return defaultprofiles[channel] end
-local function urls(url) - if not url or url == "" then - return nil - else - local u = pdfarray() - for url in gmatch(url,"([^, ]+)") do - if find(url,"^http") then - u[#u+1] = pdfdictionary { - FS = pdfconstant("URL"), - F = pdfstring(url), - } - end - end - return u - end -end - local function processprofile(s,spec) -- specification local filename = s.filename or "" local colorspace = lower(s.colorspace or "")
Thank you very much for the patch. I hope that I applied it correctly. But, I still get: backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua' juh

On 6/9/2025 8:30 PM, juh+ntg-context--- via ntg-context wrote:
Am 05.06.25 um 18:45 schrieb Pablo Rodriguez via ntg-context:
Patch:
--- lpdf-fmt.lmt 2025-06-05 18:35:30.016927969 +0200 +++ mkxl/lpdf-fmt.lmt 2025-06-05 18:36:27.670594638 +0200 @@ -260,6 +260,23 @@ return lower(file.basename(filename)) end
+local function urls(url) + if not url or url == "" then + return nil + else + local u = pdfarray() + for url in gmatch(url,"([^, ]+)") do + if find(url,"^http") then + u[#u+1] = pdfdictionary { + FS = pdfconstant("URL"), + F = pdfstring(url), + } + end + end + return u + end +end + local function includeprofile(s) local filename = s.filename or "" local colorspace = s.colorspace or "" @@ -313,23 +330,6 @@ return defaultprofiles[channel] end
-local function urls(url) - if not url or url == "" then - return nil - else - local u = pdfarray() - for url in gmatch(url,"([^, ]+)") do - if find(url,"^http") then - u[#u+1] = pdfdictionary { - FS = pdfconstant("URL"), - F = pdfstring(url), - } - end - end - return u - end -end - local function processprofile(s,spec) -- specification local filename = s.filename or "" local colorspace = lower(s.colorspace or "")
Thank you very much for the patch. I hope that I applied it correctly.
But, I still get:
backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua'
let's see what Pablo comes up with as he's most into these profiles Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On 6/9/25 20:30, juh+ntg-context--- via ntg-context wrote:
Thank you very much for the patch. I hope that I applied it correctly.
Dear Jan-Ulrich, I thought the patch syntax (+/- at the beginning of the line to indicate that the line should be added/removed) could help just to indicate what should be changed manually. I didn’t think of making a .patch file and applying it automatically.
But, I still get:
backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua'
I’m afraid I don’t get any error at all. backend > profiles > profile specification 'ISO Coated v2 300% (ECI)' loaded from '/home/ousia/context/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > setting output intent to 'ISO Coated v2 300% (ECI)' with id 'FOGRA39' for entry 1 For reference, my sample reads: \setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \starttext \null \stoptext I attach colorprofiles.xml (just removed texmf-context/colors/icc/context/colorprofiles.xml and reinstalled again). Please, check that your copy (not from texmf-local, but from texmf-context/colors/icc/context/) has a SHA512 starting with 0c429fa93d638e6fcb2c68022eaebecfb1f4497b862790 (otherwise, replace it with the attached version). In an earlier message, you wrote (https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/TPO6PDDQIE3L...):
The one in texmf-local has the definition for ISO Coated v2 300% (ECI).
Well, texmf-context/colors/icc/context/colorprofiles.xml should contain that definition too. I’m not in front of your computer (so I have to guess 😅). Disable colorprofiles.xml from texmf-local (just renaming it to ".colorprofiles.xml" should be enough [I guess]) and "mtxrun --script cache --erase && mtxrun --generate". If your also happen to have colorprofiles.lua in texmf-local, please disable before regenerating the cache (although this might not be strictly required). I hope it helps, Pablo

Hi juh, On Tue, 2025-06-03 at 11:41 +0200, juh+ntg-context--- via ntg-context wrote:
in ConTeXt ver: 2025.04.28 14:29 LMTX fmt: 2025.6.3 the color profile ISO Coated v2 300% (ECI) is not found anymore
The file currently in the Standalone Distribution appears to be corrupted: $ exiftool $(mtxrun --find-file colo-imp-isocoated_v2_eci.icc) ExifTool Version Number : 13.10 File Name : colo-imp-isocoated_v2_eci.icc Directory : /opt/context/tex/texmf-context/colors/icc/profiles File Size : 1827 kB File Modification Date/Time : 2024:01:12 04:26:01-07:00 File Access Date/Time : 2024:11:22 22:15:04-07:00 File Inode Change Date/Time : 2024:01:12 04:26:01-07:00 File Permissions : -rw-r--r-- File Type : ICC File Type Extension : icc MIME Type : application/vnd.iccprofile Error : Truncated ICC profile Downloading a new copy from ECI's website https://www.eci.org/lib/exe/fetch.php?media=downloads:icc_profiles_from_eci:... seems to give a valid file: $ exiftool ~/Downloads/ISOcoated_v2_eci.icc ExifTool Version Number : 13.10 File Name : ISOcoated_v2_eci.icc Directory : /home/max/Downloads File Size : 1829 kB File Modification Date/Time : 2025:06:11 04:07:54-06:00 File Access Date/Time : 2009:05:29 07:16:44-06:00 File Inode Change Date/Time : 2025:06:11 04:07:54-06:00 File Permissions : -rwxr-xr-x File Type : ICC File Type Extension : icc MIME Type : application/vnd.iccprofile Profile CMM Type : Heidelberger Druckmaschinen AG Profile Version : 2.4.0 Profile Class : Output Device Profile Color Space Data : CMYK Profile Connection Space : Lab Profile Date Time : 2007:02:28 08:00:00 Profile File Signature : acsp Primary Platform : Unknown () CMM Flags : Not Embedded, Independent Device Manufacturer : Device Model : Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : Heidelberger Druckmaschinen AG Profile ID : e798cc1d9f659a6155ac35ad9ac383bb Profile Copyright : PrintOpen 5.2.0 - (c) Copyright 2000-2006 Heidelberger Druckmaschinen AG. All Rights Reserved. Media White Point : 0.84552 0.87683 0.74716 A To B0 : (Binary data 396852 bytes, use -b option to extract) B To A0 : (Binary data 291132 bytes, use -b option to extract) Gamut : (Binary data 33840 bytes, use -b option to extract) A To B1 : (Binary data 396852 bytes, use -b option to extract) B To A1 : (Binary data 291132 bytes, use -b option to extract) A To B2 : (Binary data 396852 bytes, use -b option to extract) B To A2 : (Binary data 291132 bytes, use -b option to extract) Gray Tone Reproduction Curve : (Binary data 524 bytes, use -b option to extract) Profile Description : ISO Coated v2 (ECI) Char Target : (Binary data 126676 bytes, use -b option to extract) No idea if this will fix the issue with ConTeXt, but it's worth a try. Thanks, -- Max

On 6/11/2025 12:13 PM, Max Chernoff via ntg-context wrote:
Hi juh,
On Tue, 2025-06-03 at 11:41 +0200, juh+ntg-context--- via ntg-context wrote:
in ConTeXt ver: 2025.04.28 14:29 LMTX fmt: 2025.6.3 the color profile ISO Coated v2 300% (ECI) is not found anymore
The file currently in the Standalone Distribution appears to be corrupted:
$ exiftool $(mtxrun --find-file colo-imp-isocoated_v2_eci.icc) ExifTool Version Number : 13.10 File Name : colo-imp-isocoated_v2_eci.icc Directory : /opt/context/tex/texmf-context/colors/icc/profiles File Size : 1827 kB File Modification Date/Time : 2024:01:12 04:26:01-07:00 File Access Date/Time : 2024:11:22 22:15:04-07:00 File Inode Change Date/Time : 2024:01:12 04:26:01-07:00 File Permissions : -rw-r--r-- File Type : ICC File Type Extension : icc MIME Type : application/vnd.iccprofile Error : Truncated ICC profile
Downloading a new copy from ECI's website
https://www.eci.org/lib/exe/fetch.php?media=downloads:icc_profiles_from_eci:...
seems to give a valid file:
$ exiftool ~/Downloads/ISOcoated_v2_eci.icc ExifTool Version Number : 13.10 File Name : ISOcoated_v2_eci.icc Directory : /home/max/Downloads File Size : 1829 kB File Modification Date/Time : 2025:06:11 04:07:54-06:00 File Access Date/Time : 2009:05:29 07:16:44-06:00 File Inode Change Date/Time : 2025:06:11 04:07:54-06:00 File Permissions : -rwxr-xr-x File Type : ICC File Type Extension : icc MIME Type : application/vnd.iccprofile Profile CMM Type : Heidelberger Druckmaschinen AG Profile Version : 2.4.0 Profile Class : Output Device Profile Color Space Data : CMYK Profile Connection Space : Lab Profile Date Time : 2007:02:28 08:00:00 Profile File Signature : acsp Primary Platform : Unknown () CMM Flags : Not Embedded, Independent Device Manufacturer : Device Model : Device Attributes : Reflective, Glossy, Positive, Color Rendering Intent : Perceptual Connection Space Illuminant : 0.9642 1 0.82491 Profile Creator : Heidelberger Druckmaschinen AG Profile ID : e798cc1d9f659a6155ac35ad9ac383bb Profile Copyright : PrintOpen 5.2.0 - (c) Copyright 2000-2006 Heidelberger Druckmaschinen AG. All Rights Reserved. Media White Point : 0.84552 0.87683 0.74716 A To B0 : (Binary data 396852 bytes, use -b option to extract) B To A0 : (Binary data 291132 bytes, use -b option to extract) Gamut : (Binary data 33840 bytes, use -b option to extract) A To B1 : (Binary data 396852 bytes, use -b option to extract) B To A1 : (Binary data 291132 bytes, use -b option to extract) A To B2 : (Binary data 396852 bytes, use -b option to extract) B To A2 : (Binary data 291132 bytes, use -b option to extract) Gray Tone Reproduction Curve : (Binary data 524 bytes, use -b option to extract) Profile Description : ISO Coated v2 (ECI) Char Target : (Binary data 126676 bytes, use -b option to extract)
No idea if this will fix the issue with ConTeXt, but it's worth a try.
fixed in next upload (the file was zipped as text so it got this linefeed changing that is/was needed for unix but it's a binary file; actually that normalizing was needed decades ago but i'm not sure if it still is needed; for tex it doesn't matter if there's cr lf or crlf (mac linux windows); for a similar reason we had to add \endinput to the end of files but again one can wonder if that matters now) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

Am 11.06.25 um 14:48 schrieb Hans Hagen:
fixed in next upload (the file was zipped as text so it got this linefeed changing that is/was needed for unix but it's a binary file; actually that normalizing was needed decades ago but i'm not sure if it still is needed; for tex it doesn't matter if there's cr lf or crlf (mac linux windows); for a similar reason we had to add \endinput to the end of files but again one can wonder if that matters now)
Though I see a new profile I still get the same error.
profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua' xml > core > load error in [/home/juh/hs.pub.context/context/tex/texmf-local/colors/icc/context/colorprofiles.xml]: empty xml file backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua'
This is in my local colorprofiles.xml <profile> <filename>ISOcoated_v2_300_eci.icc</filename> <colorspace>CMYK</colorspace> <class>prtr</class> <id>FOGRA39</id> <info>ISO Coated v2 300% (ECI)</info> <checksum>e14f5db955711d914d877df35ad7a1b5</checksum> <version>24000000</version> <url>http://www.color.org</url> <outputcondition>Offset printing, according to ISO 12647-2:2004/Amd 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A (CMY) and B (K)</outputcondition> </profile> My definition: \setupbackend[ %format=PDF/X-1a:2001, %format=PDF/X-1a:2003, format=PDF/X-3:2002, %Empfehlung von Flyeralarm %format=PDF/X-3:2003, %format=PDF/X-4, %format=PDF/X-4p, intent={ISO Coated v2 300\letterpercent\space (ECI)} ] My profile in textmf-local...: -rw-r--r-- 1 juh juh 1,8M 15. Feb 2022 ISOcoated_v2_300_eci.icc I checked the File checksum. It it correct. The names of the profiles in tex-context differs. colo-imp-cgats001compat-v2-micro.icc colo-imp-icc.rme colo-imp-sgrey-v2-magic.icc colo-imp-srgb.icc colo-imp-srgb-v4.icc colo-imp-default_gray.icc colo-imp-isocoated_v2_eci.icc colo-imp-sgrey-v4.icc colo-imp-srgb-v2-magic.icc All names start with colo-... But in colorprofiles.xml all these names are missing. Sorry, but I am quite confused. juh

On 6/12/2025 11:12 PM, juh+ntg-context--- via ntg-context wrote:
Am 11.06.25 um 14:48 schrieb Hans Hagen:
fixed in next upload (the file was zipped as text so it got this linefeed changing that is/was needed for unix but it's a binary file; actually that normalizing was needed decades ago but i'm not sure if it still is needed; for tex it doesn't matter if there's cr lf or crlf (mac linux windows); for a similar reason we had to add \endinput to the end of files but again one can wonder if that matters now)
Though I see a new profile I still get the same error.
profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua' xml > core > load error in [/home/juh/hs.pub.context/ context/tex/texmf-local/colors/icc/context/colorprofiles.xml]: empty xml file backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua'
This is in my local colorprofiles.xml
<profile> <filename>ISOcoated_v2_300_eci.icc</filename> <colorspace>CMYK</colorspace> <class>prtr</class> <id>FOGRA39</id> <info>ISO Coated v2 300% (ECI)</info> <checksum>e14f5db955711d914d877df35ad7a1b5</checksum> <version>24000000</version> <url>http://www.color.org</url> <outputcondition>Offset printing, according to ISO 12647-2:2004/Amd 1, OFCOM, paper type 1 or 2 = coated art, 115 g/m2, tone value increase curves A (CMY) and B (K)</outputcondition> </profile>
My definition:
\setupbackend[ %format=PDF/X-1a:2001, %format=PDF/X-1a:2003, format=PDF/X-3:2002, %Empfehlung von Flyeralarm %format=PDF/X-3:2003, %format=PDF/X-4, %format=PDF/X-4p, intent={ISO Coated v2 300\letterpercent\space (ECI)} ]
My profile in textmf-local...:
-rw-r--r-- 1 juh juh 1,8M 15. Feb 2022 ISOcoated_v2_300_eci.icc
I checked the File checksum. It it correct.
The names of the profiles in tex-context differs. colo-imp-cgats001compat-v2-micro.icc colo-imp-icc.rme colo-imp-sgrey- v2-magic.icc colo-imp-srgb.icc colo-imp-srgb-v4.icc colo-imp-default_gray.icc colo-imp-isocoated_v2_eci.icc colo-imp-sgrey-v4.icc colo-imp-srgb-v2-magic.icc
All names start with colo-...
But in colorprofiles.xml all these names are missing.
Sorry, but I am quite confused.
what is a minimal test Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On 6/12/25 23:12, juh+ntg-context--- via ntg-context wrote:
[...] I checked the File checksum. It it correct.
So these files are the same.
The names of the profiles in tex-context differs. colo-imp-cgats001compat-v2-micro.icc [...] All names start with colo-...
Same here.
But in colorprofiles.xml all these names are missing.
Well, what is missing is the `colo-imp-` prefix to the file names (as far as I can remember).
Sorry, but I am quite confused.
Sometimes issues may be a bit tricky, but this only means more extensive testing may be required. In that sense, let’s try some other tricks. First, compile exactly this source (which is minimal also in resulting PDF code to be inspected [no text and no font]): \setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \setuppagenumbering[location=,] \starttext \null \stoptext If you still have the same error, please install a brand-new standalone and compile the previous source with that new brand-new installation. If you still have the same rorro, please create a brand-new (temporary) user in your OS, install a brand-new standalone and compile the minimal source with that setup (both brand-new user and brand-new install). I really hope any of this might help. Please, tell us what works (or whether all tricks failed). Best luck, Pablo

On 6/13/2025 4:00 PM, Pablo Rodriguez via ntg-context wrote:
Well, what is missing is the `colo-imp-` prefix to the file names (as far as I can remember).
We could strip the prefix when checking ... do you have a test that exposes this issue? Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On 6/14/25 10:02, Hans Hagen via ntg-context wrote:
On 6/13/2025 4:00 PM, Pablo Rodriguez via ntg-context wrote:
Well, what is missing is the `colo-imp-` prefix to the file names (as far as I can remember).
We could strip the prefix when checking ... do you have a test that exposes this issue?
I don’t have the issue and I suspect that this may be related to the installation of the standalone from Jan-Ulrich. In any case, I don’t get why not found color profiles is a problem at all, when they are actually not embedded in the final PDF document. Pablo

Dear Pablo, Am 13.06.25 um 16:00 schrieb Pablo Rodriguez via ntg-context:
First, compile exactly this source (which is minimal also in resulting PDF code to be inspected [no text and no font]):
\setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \setuppagenumbering[location=,] \starttext \null \stoptext
With two different installation I get this: A current version: 2025.06.12 14:21 backend > xmp > using file '/home/juh/juh.context.20241101/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' backend > profiles > profile specification 'ISO Coated v2 300% (ECI)' loaded from '/home/juh/juh.context.20241101/tex/texmf-context/colors/icc/context/colorprofiles.xml' backend > profiles > setting 'ISOcoated_v2_300_eci.icc' as default 'cmyk' color space backend > profiles > setting output intent to 'ISO Coated v2 300% (ECI)' with id 'FOGRA39' for entry 1 B current version: 2025.06.12 14:21 backend > xmp > using file '/home/juh/hs.pub.context/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' backend > profiles > profile specification 'ISO Coated v2 300% (ECI)' loaded from '/home/juh/hs.pub.context/context/tex/texmf-local/colors/icc/context/colorprofiles.xml' backend > profiles > setting 'ISOcoated_v2_300_eci.icc' as default 'cmyk' color space backend > profiles > setting output intent to 'ISO Coated v2 300% (ECI)' with id 'FOGRA39' for entry 1 A has only the default profiles B has the additional colorprofiles in texmf-local But when I use my real world color environment... \startmode[isocoated] \definecolor [hs-logoblau] [c=1.000, m=0.643, y=0.066, k=0.314] \definecolor [hs-dunkelblau] [c=0.881, m=0.549, y=0.015, k=0.004] \definecolor [hs-hellblau] [c=0.479, m=0.211, y=0.049, k=0.003] \definecolor [hs-orange] [c=0.021, m=0.790, y=1.000, k=0.100] \definecolor [hs-grau] [c=0.000,m=0.000,y=0.000,k=0.700] \setupcolors[cmyk=yes,rgb=no,] \setupbackend[ %format=PDF/X-1a:2001, %format=PDF/X-1a:2003, format=PDF/X-3:2002, %Empfehlung von Flyeralarm %format=PDF/X-3:2003, %format=PDF/X-4, %format=PDF/X-4p, intent={ISO Coated v2 300\letterpercent\space (ECI)} ] \stopmode The profile is not found. backend > xmp > using file '/home/juh/hs.pub.context/context/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml' backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua' backend > profiles > profile specification '{ISO Coated v2 300% (ECI)} ' not found in 'colorprofiles.xml, colorprofiles.lua' In an older context release from last year it works. Thanks for your help. juh

On 6/14/25 16:21, juh+ntg-context--- via ntg-context wrote:
[...]
\setupbackend[ format=PDF/X-3:2002, %Empfehlung von Flyeralarm intent={ISO Coated v2 300\letterpercent\space (ECI)} ]
Dear Jan-Ulrich, I have been able to reproduce your issue. Some bugs are tricky, write a comma after the closing parenthesis to define the (previous) option value for `intent`, such as in: \setupbackend[ format=PDF/X-3:2002, %Empfehlung von Flyeralarm intent={ISO Coated v2 300\letterpercent\space (ECI)}, ] After that, I cannot reproduce your issue anymore. It seems that ConTeXt got stricter in the meantime (from last November). I really hope this solves your issue. Best wishes, Pablo

Dear Pablo, Am 14.06.25 um 17:15 schrieb Pablo Rodriguez via ntg-context:
I have been able to reproduce your issue.
Some bugs are tricky, write a comma after the closing parenthesis to define the (previous) option value for `intent`, such as in:
\setupbackend[ format=PDF/X-3:2002, %Empfehlung von Flyeralarm intent={ISO Coated v2 300\letterpercent\space (ECI)}, ]
After that, I cannot reproduce your issue anymore.
It seems that ConTeXt got stricter in the meantime (from last November).
I really hope this solves your issue.
Yes it does. Thank you very much for your persistence. Have a nice weekend! juh

On 6/11/25 12:13, Max Chernoff via ntg-context wrote:
The file currently in the Standalone Distribution appears to be corrupted:
$ exiftool $(mtxrun --find-file colo-imp-isocoated_v2_eci.icc)
Many thanks for checking this, Max. I didn‘t know that it was possible to check color profiles.
No idea if this will fix the issue with ConTeXt, but it's worth a try.
As far as I know, unless the color profile contains "<id>Custom</id>" in `colorprofiles.xml`, it will not be embedded in the PDF document. BTW, inspecting the PDF code from the following source, \setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \setuppagenumbering[location=,] \starttext \null \stoptext I get these two objects: 2 0 obj << /ProfileCS (cmyk) /ProfileName (ISO Coated v2 300% \(ECI\)) /URLs [ << /F (http://www.color.org) /FS /URL >> ]
endobj
3 0 obj << /OutputConditionIdentifier (FOGRA39) /S /GTS_PDFX /Type /OutputIntent
endobj
Reference to object #3 is contained in object #7, but I cannot find any reference to object #2. Hans, I may be missing something, but object #2 seems orphan to me. Could you check this? Many thanks for your help, Pablo

On 6/11/2025 4:05 PM, Pablo Rodriguez via ntg-context wrote:
On 6/11/25 12:13, Max Chernoff via ntg-context wrote:
The file currently in the Standalone Distribution appears to be corrupted:
$ exiftool $(mtxrun --find-file colo-imp-isocoated_v2_eci.icc)
Many thanks for checking this, Max.
I didn‘t know that it was possible to check color profiles.
No idea if this will fix the issue with ConTeXt, but it's worth a try.
As far as I know, unless the color profile contains "<id>Custom</id>" in `colorprofiles.xml`, it will not be embedded in the PDF document.
BTW, inspecting the PDF code from the following source,
\setupbackend [format=PDF/X-3:2002, intent={ISO Coated v2 300\letterpercent\space (ECI)}] \setuppagenumbering[location=,] \starttext \null \stoptext
I get these two objects:
2 0 obj << /ProfileCS (cmyk) /ProfileName (ISO Coated v2 300% \(ECI\)) /URLs [ << /F (http://www.color.org) /FS /URL >> ]
endobj
3 0 obj << /OutputConditionIdentifier (FOGRA39) /S /GTS_PDFX /Type /OutputIntent
endobj
Reference to object #3 is contained in object #7, but I cannot find any reference to object #2.
Hans, I may be missing something, but object #2 seems orphan to me.
Could you check this?
when you also define profile=... to contain it, it will be referenced, so i might need to check and not embed the reference when it's not used; irr validators complain with some mix of internal and excernal anyway Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl -----------------------------------------------------------------

On 6/11/25 19:56, Hans Hagen via ntg-context wrote:
On 6/11/2025 4:05 PM, Pablo Rodriguez via ntg-context wrote:
[...] Hans, I may be missing something, but object #2 seems orphan to me.
Could you check this?
when you also define profile=... to contain it, it will be referenced, so i might need to check and not embed the reference when it's not used; irr validators complain with some mix of internal and excernal anyway
Many thanks for your reply, Hans. I found out just by reading it (only this human validator involved 😅). But the Arlington PDF model validator complains about `/Extensions` in a PDF-1.3 document. It seems extensions are available beginning with PDF-1.7 (https://github.com/pdf-association/arlington-pdf-model/blob/master/tsv/lates...). Since I don’t know any PDF/X validator, I’m not sure whether extensions might be allowed in that case. Many thanks for your help, Pablo
participants (5)
-
Hans Hagen
-
Hans Hagen
-
juh+ntg-context@mailbox.org
-
Max Chernoff
-
Pablo Rodriguez