Bug 694982 - -sDeviceNProfile has no effect
Summary: -sDeviceNProfile has no effect
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Color Management (show other bugs)
Version: master
Hardware: PC Linux
: P4 normal
Assignee: Michael Vrhel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-29 08:50 UTC by Lasse Fister
Modified: 2015-11-01 14:13 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
An eps with a DeviceN using the same color-names as the artifex examples but using very different colors in the alternate colorspace. (18.34 KB, image/x-eps)
2014-01-29 08:50 UTC, Lasse Fister
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lasse Fister 2014-01-29 08:50:35 UTC
Created attachment 10624 [details]
An eps with a DeviceN using the same color-names as the artifex examples but using very different colors in the alternate colorspace.

Using -sDeviceNProfile has no effect for the display-output of the gs command. The colors when using the option are the same as without.

A) Example using the files provided in ./ghostpdl/gs/toolbin/color/icc_creator/example:
Executing both commands in parallel and comparing the colors of the open windows:

$ gs gs tritone.pdf
$ gs -sDeviceNProfile=artifex_tritone.icc tritone.pdf 

Result:
Both windows display the same colors.

Expected:
Both windows display different colors


B) Example using the attached test.eps which has an alternate colorspace of very different colors than their names suggest.
Executing both commands in parallel and comparing the colors of the open windows:

$ gs gs test.eps
$ gs -sDeviceNProfile=artifex_tritone.icc test.eps 

Result:
Both windows display the same colors.

Expected:
Both windows display different colors. The alternate colorspace has a very blue color instead of an orange, so the results here should differ strongly.
Comment 1 Lasse Fister 2014-01-31 04:38:49 UTC
The first command in both examples should be without the second "gs", of course.
Comment 2 Michael Vrhel 2015-10-31 11:35:37 UTC
The DeviceN ICC profile handling appears to have gotten
broken when we went to a delayed initialization of
the ICC profiles.  I will have a fix for this soon.
Comment 4 Lasse Fister 2015-11-01 14:13:42 UTC
Thanks!