cmyk

C# convert RGB value to CMYK using an ICC profile?

风格不统一 提交于 2019-11-27 11:58:35
this question seems posted at many places over the interwebs and SO, but I could not find a satisfactory answer :( How can I convert a RGB value to a CMYK value using an ICC profile? The closest answer I have is there, where it explains how to convert from CMYK to RGB but not the other way around, which is what I need. (http://stackoverflow.com/questions/4920482/cmyk-to-rgb-formula-of-photoshop/5076731#5076731) float[] colorValues = new float[4]; colorValues[0] = c / 255f; colorValues[1] = m / 255f; colorValues[2] = y / 255f; colorValues[3] = k / 255f; System.Windows.Media.Color color = Color

Java CMYK to RGB with profile. Output is too dark

大憨熊 提交于 2019-11-27 05:49:37
问题 Similar question has been asked many times. But I still don't get why I get too dark output after I converted a picture with ICC_Profile. I've tried many profiles: from Adobe site, and from the picture itself. Before Image After Image Code Iterator<ImageReader> readers = ImageIO.getImageReadersByFormatName("jpeg"); ImageReader reader = null; while (readers.hasNext()){ reader = readers.next(); if (reader.canReadRaster()){ break; } } // read ImageInputStream ios = ImageIO.createImageInputStream

ghostscript: convert PDF into CMYK preserving pure Black for text

霸气de小男生 提交于 2019-11-27 04:39:55
问题 I need to convert RGB PDF into CMYK PDF. I need to have pure black color for texts. It seems (thanks to comments below) term "black point compensation" is wrong. I took it from Adobe Acrobat where it works exactly how i need. I thought gs has same feature. I use ghostscript 9.16 If i got it right there is -dBlackPtComp option, but it does not work for me. Ghostscript command I have tried is: "c:/Program Files/gs/gs9.16/bin/GSWIN64C.EXE" -o testing_black_cmyk.pdf -sColorConversionStrategy=CMYK

色彩空间RGB/CMYK/HSL/HSB/HSV/Lab/YUV基础理论及转换方法:RGB与YUV

放肆的年华 提交于 2019-11-27 00:23:49
之前做个设计,现在从事IT,脑子里面关于RGB,RGBA,CMY,CMYK,YUV,但是具体理论还是不扎实。若干年前之前写过《 水煮RGB与CMYK色彩模型—色彩与光学相关物理理论浅叙 》《 三色视者与四色视者身后的理论基础:色彩原理 》 光学三原色与印刷三间色 光学的三原色 : 红(Red)、绿(Green)、蓝(Blue) (RGB)。 印刷的三原色 : 青(Cyan)、品红(Magenta)、黄(Yellow) (CMYK) 印刷色是光照射在印刷物上, 然后折射到人眼的光的合成,所以印刷色会比光学暗淡,因为印刷色是经过印刷物过滤过光合成的,自然会比较相对暗淡。 C(100) +M(100) +Y(100) = 黑色(100,100,100) 可见黑色就是青色、品与黄色之和,但是这三种颜色混成的黑色不够纯,所以印刷学就引进了K(Black)黑色,因为B已经被Blue占用,所以黑色就只好用引文字母黑色的最后一个字母K,所以: C(100) +M(100) +Y(100) + K(100) 等价于 C(0) +M(0) + Y(0) + K(100) = 黑色 光学三原色如何得到白色, 配色如下: R(0) + G(0) + B(0)+A(255) = C(0) +M(0) + Y(0) + K(100) = 黑色 联想下,是不是可见黑色就是没有颜色(0,0,0)?

Script (or some other means) to convert RGB to CMYK in PDF?

99封情书 提交于 2019-11-26 22:42:23
问题 Is it possible to write a script for Adobe Illustrator or some other tool that will read the contents of a number of PDF files and convert all the RGB colours to CMYK? If so, could somebody please point out some of the steps involved, or where to find more information on this? 回答1: This answer is not for Illustrator, but for 'some other tool' , namely Ghostscript (download gs871w32.exe or gs871w64.exe ). Ghostscript allows you to 're-distill' PDFs ( without an intermediate conversion to

Convert RGB color to CMYK?

余生长醉 提交于 2019-11-26 22:35:46
I'm looking for an algorithm to convert an RGB color to CMYK. Photoshop is performing the conversion below: R = 220 G = 233 B = 174 C = 15 M = 0 Y = 40 K = 0 The conversion from RGB to CMYK is dependent on the physical device/process being used to lay down the CMYK ink. These are represented in software as Color Profiles. ICC and ICM color profiles of physical devices determine the resulting colors. If you are not concerned with true representation on a physical device then use the direct conversion formulas in other posts. If, however, you are concerned with this aspect, then you need to use

Halftone Images In Python

∥☆過路亽.° 提交于 2019-11-26 20:21:05
问题 I am working on a project that requires me to separate out each color in a CYMK image and generate a halftone image that will be printed on a special halftone printer. The method used is analogues to silk screening in that the process is almost identical. Take a photo and break out each color channel. Then produce a screen for the half tone. Each color screen must have it's screen skewed by 15-45 (adjustable) degrees. Dot size and LPI must be calculated from user configurable values to

Converting PDF to CMYK (with identify recognizing CMYK)

有些话、适合烂在心里 提交于 2019-11-26 15:09:04
问题 I am having much trouble to get ImageMagick's identify to, well, identify a PDF as CMYK. Essentially, let's say I'm building this file, test.tex , with pdflatex : \documentclass[a4paper,12pt]{article} %% https://tex.stackexchange.com/questions/13071 \pdfcompresslevel=0 %% http://compgroups.net/comp.text.tex/Making-a-cmyk-PDF %% ln -s /usr/share/color/icc/sRGB.icm . % \immediate\pdfobj stream attr{/N 4} file{sRGB.icm} % \pdfcatalog{% % /OutputIntents [ << % /Type /OutputIntent % /S/GTS_PDFA1 %

RGB to CMYK and back algorithm

南笙酒味 提交于 2019-11-26 07:37:48
问题 I am trying to implement a solution for calculating the conversion between RGB and CMYK and vice versa. Here is what I have so far: public static int[] rgbToCmyk(int red, int green, int blue) { int black = Math.min(Math.min(255 - red, 255 - green), 255 - blue); if (black!=255) { int cyan = (255-red-black)/(255-black); int magenta = (255-green-black)/(255-black); int yellow = (255-blue-black)/(255-black); return new int[] {cyan,magenta,yellow,black}; } else { int cyan = 255 - red; int magenta

How to convert from CMYK to RGB in Java correctly?

你离开我真会死。 提交于 2019-11-26 04:42:09
问题 My Java code to convert a CMYK jpeg to RGB results in the output image being far too light - see code below. Can anyone suggest the correct way to do the conversion? The following code requires Java Advanced Image IO to read the jpeg and example-cmyk.jpg import java.awt.image.BufferedImage; import java.awt.image.ColorConvertOp; import java.io.File; import javax.imageio.ImageIO; public class TestCmykToRgb { public static void main(String[] args) throws Exception { BufferedImage cmykImage =