cmyk

PHP - Convert CMYK colour values to RGBA

有些话、适合烂在心里 提交于 2019-12-08 08:38:57
问题 I need to convert CMYK values to RGBA values, but have yet to stumble upon an algorithm for this that just works. I already have the RGBA to CMYK via the following: Convert RGBA to RGB Convert RGB to CMYK Below are the algorithms I'm using for the above two bullet points: RGBA to RGB return substr($rgba, 0, -2); ... what? Nothing wrong with that! :D RGB to CMYK $c = 255 - $r; $m = 255 - $g; $y = 255 - $b; $b = min($c, $m, $y); $c = round(($c - $b) / (255 - $b)); $m = round(($m - $b) / (255 -

Ghostscript convert PDF to JPG (CMYK profile) resolution error

坚强是说给别人听的谎言 提交于 2019-12-08 07:31:19
问题 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

How can i convert an uploaded image of RGB format to CMYK format in .Net?

▼魔方 西西 提交于 2019-12-07 18:58:27
问题 I have a requirement for converting and saving an image in CMYK format. When i have uploaded an image of RGB format, then i need to convert it to CMYK. Is it possible in .Net? Thanks 回答1: As others mentioned .NET does not natively support image colorspace adjustments. However, ImageMagick is excellent free software suite that will alow you to do this using the -colorspace or -profile option. The .NET library that will allow you to tap into ImageMagick is conveniently named ImageMagick.NET, it

The are any CMYK graphics library?

狂风中的少年 提交于 2019-12-07 12:19:26
问题 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

cmyk to rgb using php

一个人想着一个人 提交于 2019-12-07 08:04:16
问题 I'm using the following script to save images on a folder, but there is one image that shows this message "the image cannot be displayed because it contains errors". I think the problem is something called cmyk and rgb on the image, but when searching on the web for a way so convert cmyk to rgb using php I can't find an example of how to do this. Here is one of example: http://offshootinc.com/blog/2008/10/24/using-the-imagick-class-to-convert-a-cmyk-jpeg-to-rgb/ but I don't undestand how to

How can i convert an uploaded image of RGB format to CMYK format in .Net?

陌路散爱 提交于 2019-12-06 14:30:33
I have a requirement for converting and saving an image in CMYK format. When i have uploaded an image of RGB format, then i need to convert it to CMYK. Is it possible in .Net? Thanks As others mentioned .NET does not natively support image colorspace adjustments. However, ImageMagick is excellent free software suite that will alow you to do this using the -colorspace or -profile option. The .NET library that will allow you to tap into ImageMagick is conveniently named ImageMagick.NET , it can be downloaded from Codeplex ... I don't know the first thing about .Net but I saw a web site where you

PHP IMagick RGB to CMYK inverts?

五迷三道 提交于 2019-12-06 07:37:40
问题 I'm trying to convert a RGB .gif to a CMYK .gif using IMagick PHP module. I've wrote this piece of code $i = new Imagick('mosaique.gif'); $i->setImageColorspace(Imagick::COLORSPACE_CMYK); $i->setImageFormat('gif'); $i->writeImage('mosaique-cmyk.gif'); But the resultant "mosaique-cmyk.gif" still a RGB... but with inverted colors (O_O) What am I doing wrong? EDIT: I've tried with a .jpg and the image is converted to CMYK but it stills in negative. EDIT 2: I've tried to run my script making a

The are any CMYK graphics library?

心不动则不痛 提交于 2019-12-06 01:44:33
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) (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) { using (AtalaImage bottom = new AtalaImage(bottomStm, null), top = new

Convert PDF to CMYK but ignore black?

荒凉一梦 提交于 2019-12-05 21:28:31
I am converting an RGB PDF to CMYK using the following command: /usr/local/bin/gs -dSAFER -dBATCH -dNOPAUSE -dNOCACHE -sDEVICE=pdfwrite \ -sColorConversionStrategy=CMYK -sColorConversionStrategyForImages=CMYK \ -dProcessColorModel=/DeviceCMYK -dEncodeColorImages=false \ -dEncodeGrayImages=false -dEncodeMonoImages=false -sOutputFile=CMYK.PDF RGB.PDF The resulting file is 100% CMYK, however anything that was 100% black in the RGB PDF is now: C: 72% M: 68% Y: 67% K: 89% The result is that black is a slightly dark grey when really it should be black. Is there anything I need to add to this command

cmyk to rgb using php

不问归期 提交于 2019-12-05 10:48:17
I'm using the following script to save images on a folder, but there is one image that shows this message "the image cannot be displayed because it contains errors". I think the problem is something called cmyk and rgb on the image, but when searching on the web for a way so convert cmyk to rgb using php I can't find an example of how to do this. Here is one of example: http://offshootinc.com/blog/2008/10/24/using-the-imagick-class-to-convert-a-cmyk-jpeg-to-rgb/ but I don't undestand how to use that in my case. The link for the image is something like: www.example.com/attachment?id=2290 The