cmyk

How to identify CMYK images using C#

孤街醉人 提交于 2019-11-29 11:13:31
问题 Does anybody know how to properly identify CMYK images using C#? I found how to do it using ImageMagick, but I need a .NET solution. I found 3 code snippets online, only one works in Windows 7, but all fail in Windows Server 2008 SP2. I need it to work at least in Windows Server 2008 SP2. Here is what I've found: using System.Windows.Media; using System.Windows.Media.Imaging; using System.Drawing; using System.Drawing.Imaging; bool isCmyk; // WPF BitmapImage wpfImage = new BitmapImage(new Uri

CMYK to RGB formula of Photoshop

心不动则不痛 提交于 2019-11-29 08:45:45
Is there a place where I can get the formula which photoshop uses to convert rgb to cmyk? I know there are formulas on the web, but photoshop does not use this formula. It converts the collors different. Can someone tell me the photoshop formula? Thanks! Most likely, Photoshop uses a color profile for converting RGB to CMYK. If you want to do the same with a .NET language on Windows, then there's an API for it: 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

SVG image with CMYK colours - is it possible?

故事扮演 提交于 2019-11-29 02:32:42
问题 Is it possible to specify that as SVG image should produce output in CMYK? If so, is it a big task? What if the image has its colours specified in RGB, is it difficult to convert them to CMYK? 回答1: SVG supports ICC colors, using ICC color profiles, which would let you do what you need, but it's not yet supported by any browser :( 回答2: SVG 2.0 adds support for unmanaged colors allowing you to specify a CMYK color with an sRGB fallback: <circle fill="#CD853F device-cmyk(0.11, 0.48, 0.83, 0.00)"

Pure Java alternative to JAI ImageIO for detecting CMYK images

拜拜、爱过 提交于 2019-11-29 01:18:13
问题 first I'd like to explain the situation/requirements that lead to the question: In our web application we can't support CMYK images (JPEG) since IE 8 and below can't display them. Thus we need to detect when someone wants to upload such an image and deny it. Unfortunately, Java's ImageIO won't read those images or would not enable me to get the detected color space. From debugging it seems like JPEGImageReader internally gets the color space code 11 (which would mean JCS_YCCK ) but I can't

Converting PDF to CMYK (with identify recognizing CMYK)

风流意气都作罢 提交于 2019-11-28 02:57:59
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 % /DestOutputProfile \the\pdflastobj\space 0 R % /OutputConditionIdentifier (sRGB IEC61966-2.1) % /Info

CMYK to RGB formula of Photoshop

心已入冬 提交于 2019-11-28 02:03:59
问题 Is there a place where I can get the formula which photoshop uses to convert rgb to cmyk? I know there are formulas on the web, but photoshop does not use this formula. It converts the collors different. Can someone tell me the photoshop formula? Thanks! 回答1: Most likely, Photoshop uses a color profile for converting RGB to CMYK. If you want to do the same with a .NET language on Windows, then there's an API for it: float[] colorValues = new float[4]; colorValues[0] = c / 255f; colorValues[1]

ghostscript: convert PDF into CMYK preserving pure Black for text

有些话、适合烂在心里 提交于 2019-11-27 23:18:23
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 -sDEVICE=pdfwrite -dOverrideICC=true -sOutputICCProfile=c:/Windows/System32/spool/drivers/color

Halftone Images In Python

梦想与她 提交于 2019-11-27 20:18:36
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 achieve different effects. This process I am told is used in silk screening but I have been unable to locate

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

情到浓时终转凉″ 提交于 2019-11-27 18:37:52
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? 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 PostScript, the dreaded 'refrying' detour). Try this command: gswin32c.exe ^ -o c:/path/to/output-cmyk.pdf ^

Using CMYK colours in WPF/XAML

醉酒当歌 提交于 2019-11-27 18:14:10
问题 Is there any way to specify CMYK colours directly in a XAML document? prefixing them with # character will create RGB colours, but how to specify a CMYK colour? Some notes: The question is NOT about converting from CMYK to RGB but to use real CMYK The purpose is to allow generated XPS documents (using System.Windows.Xps.Packaging for example) see the colour as CMYK and generate colour codes as "ContextColor /swopcmykprofile.icc a,b,c,d,e" not as "#aarrggbb" I have tried to define CMYK colours