Comment 4 for bug 995561

Revision history for this message
su_v (suv-lp) wrote :

>> Could you provide more background information under which circumstances
>> you got prompted with this error message?
>
> OK, it's in the .svgz file:
> name="GRACoL2006_Coated1_GCR_bas.icc"
> xlink:href="/usr/share/color/icc/GRACoL2006_Coated1_GCR_bas.icc"
> where the full path is hard-coded.
>
> It'd be nice if Inkscape could devise a platform-independant file
> structure where the default system paths are checked for "system files"
> like ICC profiles, etc. The objective would be to make a truly portable
> drawing file (i.e. JPEGs and PNGs just work anywhere).

Keep in mind that the notation of the link to the external resource (ICC profile) is based in SVG specification:
<http://www.w3.org/TR/SVG11/color.html#ColorProfileProperty>

A "relative" path in the xlink:href property would resolve to the current directory of the SVG file. An "absolute" IRI refers to a specific resource file e.g. in the local file system.

Inkscape's roadmap is to fully implement the SVG specification - parsing the available ICC profile information (abs path + file name) differently from other SVG renderers (and load an arbitrary profile which happens to have the same file name, from one of the known locations of color profiles on the current system) might not be desirable (no need to repeat the 'Flowed Text' experience).

I would recommend to file a separate feature request for support of the attribute 'local' of <color-profile>, as described in the SVG 1.1 specification (AFAICT this aims to implement such a 'platform-independant' load mechanism based on locally installed profiles):
«The unique ID for a locally stored color profile. <string> is the profile's unique ID as specified by International Color Consortium. If both the ‘xlink:href’ and the ‘local’ attributes are specified, then the user agent shall search the local system for the locally stored color profile first, and, if not available locally, then attempt to use the resource identified by the ‘xlink:href’ attribute. (Note: Profile description fields do not represent a profile's unique ID. With current ICC proposals, the profile's unique ID is an MD5-encoded value within the profile header.)»
<http://www.w3.org/TR/SVG11/color.html#ColorProfileElementLocalAttribute>

Note: I did not take the time to search for information details about planned enhancements for color management in SVG 2.0:
<http://www.w3.org/Graphics/SVG/WG/wiki/Roadmap>

<off-topic>
Please do not mix several unrelated issues in a single report: this makes it unnecessarily difficult to properly triage and track progress for each confirmed item, and tends to leave open reports linger in the bug tracker because it has not been determined and rechecked whether all mentioned items have been addressed).
</off-topic>