Summary: | Can't convert RGB PDF to CMYK PDF with transparent image | ||
---|---|---|---|
Product: | Ghostscript | Reporter: | Md. Sufian Saory <sufian> |
Component: | PDF Writer | Assignee: | Ken Sharp <ken.sharp> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | ||
Priority: | P4 | ||
Version: | 9.05 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Customer: | Word Size: | --- | |
Attachments: | RGB pdf contins two transparent image of butterfly in first page |
Description
Md. Sufian Saory
2012-07-04 09:16:05 UTC
Created attachment 8730 [details]
RGB pdf contins two transparent image of butterfly in first page
This PDF of two page contains two transparent butterfly image in first page. when converting to CMYK color pdf the conversion is failing.
(In reply to comment #1) > Created an attachment (id=8730) [details] > RGB pdf contins two transparent image of butterfly in first page > > This PDF of two page contains two transparent butterfly image in first page. > when converting to CMYK color pdf the conversion is failing. The problem is that you are setting -dUseCIEColor, the code is unable to convert a CIEABC color space into a DeviceCMYK space. The current code (not the latest release, but the latest code in the Git repository) will emit a warning and alter the conversion strategy to 'leave color unchanged'. This will result in the images being emitted in an ICCBased colour space. This is not a bug, the code is behaving as expected. At some point we intend to rewrite the colour handling in pdfwrite and this will be addressed at that time. (In reply to comment #2) > (In reply to comment #1) > > Created an attachment (id=8730) [details] [details] > > RGB pdf contins two transparent image of butterfly in first page > > > > This PDF of two page contains two transparent butterfly image in first page. > > when converting to CMYK color pdf the conversion is failing. > > The problem is that you are setting -dUseCIEColor, the code is unable to > convert a CIEABC color space into a DeviceCMYK space. > > The current code (not the latest release, but the latest code in the Git > repository) will emit a warning and alter the conversion strategy to 'leave > color unchanged'. This will result in the images being emitted in an ICCBased > colour space. > > This is not a bug, the code is behaving as expected. At some point we intend to > rewrite the colour handling in pdfwrite and this will be addressed at that > time. Thanks you very much. After removing -dUseCIEColor flag conversion is working well. One thing if you can give me some solution I will really appreciate it, during color conversion transparent PNGs with shadow is loosing quality on shadow. Is there anything I'm missing. Thanks in advance. (In reply to comment #3) > Thanks you very much. After removing -dUseCIEColor flag conversion is working > well. One thing if you can give me some solution I will really appreciate it, > during color conversion transparent PNGs with shadow is loosing quality on > shadow. Is there anything I'm missing. I don't know what you mean by 'losing quality', but its probably some kind of over-aggressive downsampling or lossy image compression. If you remove -dPDFSETTINGS=/prepress does it make any difference ? I would suggest that you start with the simplest possible command line and add or alter settings one by one, in general the simplest possible command line to pdfwrite will produce the best quality result, but not the smallest possible file. (In reply to comment #4) > I don't know what you mean by 'losing quality', but its probably some kind of > over-aggressive downsampling or lossy image compression. If you remove > -dPDFSETTINGS=/prepress does it make any difference ? > > I would suggest that you start with the simplest possible command line and add > or alter settings one by one, in general the simplest possible command line to > pdfwrite will produce the best quality result, but not the smallest possible > file. Yes, without -dPDFSETTINGS=/prepress flag converted pdf's image is getting very lossy. I'm going to try out smallest command possible. Thanks. With the release of 9.12 this is now resolved. It is no longer necessary (and is now deprecated) to use -dUseCIEColor with pdfwrite in order to do colour management. It is also no longer necessary to set both ProcessColoModel and ColorConversionStrategy when going to a device space, the action of setting ColorConversionStrategy to a device space automatically sets ProcessColorModel to that space. |