Hi,
i've downloaded the ISOcoated_v2_eci.icc profile from
http://www.eci.org/ and applied it to the JPG using this command:
convert -colorspace CMYK -profile ISOcoated_v2_eci.icc
INVIT_210x100_Vide.pdf test.jpg
Using Adobe Photoshop to open the test-0.jpg (first page of the PDF),
i've verified that the profile is present in the jpeg file.
BUT, this has no effect on my color problems. I've still cmyk(0,0,0,77)
that become cmyk(70,70,70,0).
Using the PHP Imagick extension to open the pdf:
$image = new Imagick();
$image->readImage('INVIT_210x100_Vide.pdf');
$pixel = $image->getImagePixelColor(70,270);
print_r($pixel->getColor());
return me:
Array
(
[r] => 179
[g] => 179
[b] => 179
[a] => 1
)
although using this piece of code:
$cs = $image->getImageColorSpace();
switch($cs)
{
case Imagick::COLORSPACE_CMYK:
echo "cmyk";
break;
case Imagick::COLORSPACE_RGB:
echo "rgb";
break;
}
It tell me that the image is CMYK.
I've tried :
$image->setOption('colorspace', 'cmyk');
but with no effect on the Pixel color.
Hope this help pinpointing the problem.
Thanks
Pierre-Yves Landuré
Anthony Thyssen a écrit :
> On Mon, 17 Nov 2008 08:49:24 +0100
> Pierre-Yves Landur__ <[EMAIL PROTECTED]> wrote:
>
> | Hi,
> |
> | well, i've just tried to display the CMYK profiles using the PHP Imagick
> | API getImageProfiles, but there is none available in the PDF that I open.
> |
> | And i don't understand why i should need profiles. Profiles are usefull
> | for color conversion (CMYK -> RGB for example). In my case, it is the
> | saved data that does not fit. Like i said earlier, the CMYK color in the
> | JPEG are different from the ones in the PDF.
> |
> | Since i have no color profile in the CMYK PDF, how can i add one to the
> | JPEG ?
> |
> | I'm a little puzzled.
> |
> Adding a JPG profile (just one -profile entry as the image does not have
> one yet, will make other clients understand that the JPG image represents
> CMYK and how to handle the colors. It isn't just for color conversion, but
> for color handling and display.
>
>
> Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]>
> -----------------------------------------------------------------------------
> "Hakuna Matata" --> "No Worries"
> -----------------------------------------------------------------------------
> Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/
>
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users