cmyk

Black color showing on CMY channels when converted to CMYK using GhostScript

∥☆過路亽.° 提交于 2019-12-04 06:06:13
问题 I am trying to generate a PDF using a library called wkhtmltopdf to create an RGB pdf. I am then using ghostscript to convert it to a CMYK format, however, the black text that is in the pdf is not pure black [cmyk(0,0,0,1)]. The black color is visible in other channels. The command for ghostscript is: gs -dBATCH -dNoOutputFonts -dNOPAUSE -dTextBlackPt=1 -dBlackPtComp=1 -sTextICCProfile -dNOCACHE -sDEVICE=pdfwrite -sProcessColorModel=DeviceCMYK -sColorConversionStrategy=CMYK -sOutputICCProfile

Converting RGB to CMYK , Using ICC Profile

扶醉桌前 提交于 2019-12-03 12:22:02
问题 I'm about to converting RGB color to CMYK for printing purpose. scale of this conversion is Adobe Photoshop ( Image -> Mode -> CMYK color ) I tried 2 solution , but none of them return the right value : Solution 1 - Using .NET Framework At first , I followed by these steps Download ICC profiles (windows version) from Adobe Convert the #color to CMYK used System.Windows.Media.Color.FromValues // return Color MSDN string convretedColor = string.Format("#{0:X2}{1:X2}{2:X2}", _color.R, _color.G,

Ghostscript convert PDF to JPG (CMYK profile) resolution error

匿名 (未验证) 提交于 2019-12-03 09:14:57
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm using Ghostcript to convert some PDF files to JPG. All is working when converting the program consider the resolution of 600dpi when converting and output jpeg quality is good. Here is my code : gs -sDEVICE=jpegcmyk -dTextAlphaBits=4 -r600 -dSAFER -dBATCH -dNOPAUSE -o my_output_file.jpg my_input_file.pdf But when I open the file in Photoshop, the properties contains 72dpi instead of 600dpi I expected : When I try with RGB profile for output, it is ok, I have got 600dpi. So what I want is CMYK + 600dpi in image properties. 回答1: As can be

The are any CMYK graphics library?

匿名 (未验证) 提交于 2019-12-03 08:54:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I'm looking for graphics library with CMYK support(JPG or TIF). I have to read one big image file and one small, then write second on first. Output have to be also CMYK(without any CMYK->RGB conversion). There are any? (C#/C++/Java or somthing else) 回答1: (Disclaimer, I work for Atalasoft) Atalasoft dotImage will read and write images in as CMYK as well as perform overlay operations in CMYK space. the code you would need to do this is: public void OverlayCMYKOnCMYK ( Stream bottomStm , Stream topStm , Point location , Steam outStm )

How to convert PDF from CMYK to RGB, for displaying on iPad?

吃可爱长大的小学妹 提交于 2019-12-03 08:51:25
问题 According to this question: Displaying PDF documents on iPad - Color Problems some PDFs don't display right on iOS devices due to colors not being in RGB. It's also mentioned that converting PDFs from CMYK to RGB could be automated using ghostscript. Anyone know how the actual command might look like? 回答1: We use Ghostscript to convert from CMYK to RGB when generating PDFs from Postscript files. It should also work for PDF-to-PDF conversions. The followind command line is used: gs -sDEVICE

How to identify CMYK images in ASP.NET using C#

自闭症网瘾萝莉.ら 提交于 2019-12-03 07:12:23
问题 Does anybody know how to properly identify CMYK images in ASP.NET using C#? When I check the Flags attribute of a Bitmap instance, I get incorrect results. I have created three images to test this: cmyk.jpg, rgb.jpg and gray.jpg. These are respectively CMYK, RGB and Grayscale images. This is my test code: static void Main(string[] args) { Bitmap bmpCMYK = new Bitmap("cmyk.jpg"); Bitmap bmpRGB = new Bitmap("rgb.jpg"); Bitmap bmpGray = new Bitmap("gray.jpg"); Console.WriteLine("\t\tRgb\tCmyk

Converting RGB to CMYK , Using ICC Profile

孤人 提交于 2019-12-03 03:39:50
I'm about to converting RGB color to CMYK for printing purpose. scale of this conversion is Adobe Photoshop ( Image -> Mode -> CMYK color ) I tried 2 solution , but none of them return the right value : Solution 1 - Using .NET Framework At first , I followed by these steps Download ICC profiles (windows version) from Adobe Convert the #color to CMYK used System.Windows.Media.Color.FromValues // return Color MSDN string convretedColor = string.Format("#{0:X2}{1:X2}{2:X2}", _color.R, _color.G, _color.B) here is the result : profile : CoatedFOGRA27.icc Original Color : #2f00ff Converted Color :

How can I convert RGB to CMYK and vice versa in python?

匿名 (未验证) 提交于 2019-12-03 03:03:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: If I had a RGB decimal such as 255, 165, 0 , what could I do to convert this to CMYK? For example: >>> red, green, blue = 255, 165, 0 >>> rgb_to_cmyk(red, green, blue) (0, 35, 100, 0) 回答1: Here's a Python port of a Javascript implementation . cmyk_scale = 100 def rgb_to_cmyk(r,g,b): if (r == 0) and (g == 0) and (b == 0): # black return 0, 0, 0, cmyk_scale # rgb [0,255] -> cmy [0,1] c = 1 - r / 255. m = 1 - g / 255. y = 1 - b / 255. # extract out k [0,1] min_cmy = min(c, m, y) c = (c - min_cmy) / (1 - min_cmy) m = (m - min_cmy) / (1 - min_cmy

Identify rgb and cmyk color from pdf

匿名 (未验证) 提交于 2019-12-03 02:54:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have a PDF that consists of different color text and background color. How do I identify which colors are used in the PDF with CMYK or RGB format? StringBuilder sb_Sourcepdf = new StringBuilder(); PdfReader reader_FirstPdf = new PdfReader(pdf_of_FirstFile); Document document = new Document(); PDFParser parser = new PDFParser(new FileInputStream(pdf_of_FirstFile)); parser.parse(); PDDocument docum = parser.getPDDocument(); PDFStreamEngine engine = new PDFStreamEngine(); PDPage page = (PDPage)docum.getDocumentCatalog().getAllPages().get(0);

Use CMYK on web page

匿名 (未验证) 提交于 2019-12-03 02:51:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I need to use CMYK colors on my web page. Is there any way to use CMYK in CSS or may be convert CMYK to RGB using JavaScript? EDIT: I mean I have colors creating algorithm in CMYK notation and I need to use it on web page. 回答1: There is no perfect algorithmic way to convert CMYK to RGB. CYMK is a subtractive color system, RGB is an additive color system. Each have different gamuts , which means there are colors that just cannot be represented in the other color system and vice versa. Both are device dependent color spaces, which really means