从带有Ghostscript的PDF或PS中生成“色彩校正"栅格的最佳方法 [英] Best way to produce 'colour correct' raster from a PDF or PS with ghostscript

查看:140
本文介绍了从带有Ghostscript的PDF或PS中生成“色彩校正"栅格的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

用ghostscript生成颜色正确的光栅文件的最佳方法是什么?

What is the best way to produce colour correct raster files with ghostscript?

ColorConversionStrategy,UseCIEColour和ICC配置文件之间的交互方式不是很明显,并且很容易生成颜色方面的图像.

The various ways that ColorConversionStrategy, UseCIEColour and ICC profiles interact is not that obvious, and its quite easy to produce images that are way off in terms of colour.

到目前为止,以下命令是我所管理的最好的命令,但是与在Acrobat Pro中进行预览相比,它对于我们的测试文件仍会产生一些稍有不同的色调,我想知道是否有人有一个更科学"的答案. 干杯!

So far the below command is the best that I've managed, but its still produces slightly different hues for our test files when compared against previewing in Acrobat Pro and I'm wondering if anyone has a more 'scientific' answer. Cheers!

./software/ghostscript-9.04/bin/gs -sOutputICCProfile=./profiles/sRGB.icc    -dQUIET -dSAFER -dBATCH -dNOPAUSE -dNOPROMPT -r94  -dUseCropBox -dEPSCrop -dMaxBitmap=50000000 -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -dAlignToPixels=0 -dGridFitTT=0 -dPrinted=false -dLastPage=1 -sDEVICE=jpeg -sOutputFile=/dev/stdout imm.pdf  > imm.jpg

推荐答案

您在Acrobat中使用哪种模拟配置文件进行比较?

What simulation profile are you using as a comparison in Acrobat ?

如果希望看到相同的结果,则必须在Acrobat和Ghostscript中使用相同的配置文件,即使那样也可能存在细微的差异,因为两者使用不同的颜色引擎.但是,这些可能在屏幕上无法在视觉上检测到.

You must use the same profile in both Acrobat and Ghostscript if you expect to see the same result, and even then there may well be subtle differences, since the two use different colour engines. These probably won't be visually detectable on-screen though.

您提到的方法根本没有真正的交互作用.

The methods you mention don't really interact at all.

ColorConversionStrategy在生成PDF文件时仅与pdfwrite设备相关,因此与渲染完全无关.它不会以任何有意义的方式与其他人互动".

ColorConversionStrategy is only relevant to the pdfwrite device, when producing PDF files, so nothing to do with rendering at all. It does not 'interact' with the others in any meaningful way.

UseCIEColor是用于颜色管理的旧的但未充分使用的PostScript范例,它依赖于您提供描述设备颜色属性的颜色渲染字典(CRD).如果您使用默认值,那么您会得到一些可以接受的东西,但是它不是正确的". CRD有点类似于ICC配置文件,但是它们并不完全相同.

UseCIEColor is an old and rather ill-used PostScript paradigm for colour management, it relies upon you supplying Color Rendering Dictionaries (CRDs) which describe the colour properties of your device. If you use the defaults then you will get something acceptable, but it won't be 'right'. CRDs are somewhat analogous to ICC Profiles, but they are not exactly the same.

ICC配置文件是必经之路.

ICC profiles are the way to go.

如果您使用的是ICC配置文件,请不要设置UseCIEColor.实际上,如果您希望获得良好的颜色,请不要设置UseCIEColor ,除非您确切知道它在做什么.

If you are using ICC profiles don't set UseCIEColor. In fact don't set UseCIEColor if you expect to get good colour unless you know exactly what you are doing with it.

这篇关于从带有Ghostscript的PDF或PS中生成“色彩校正"栅格的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆