Problem with GetImageProfile

MagickWand for PHP is an object-oriented PHP interface to ImageMagick. Use this forum to discuss, make suggestions about, or report bugs concerning MagickWand for PHP.
Post Reply
moscovisci

Problem with GetImageProfile

Post by moscovisci »

Hello,

I try to obtain the picture profile name.
For that, i use, this function in Php :

Code: Select all

$Profile=MagickGetImageProfile($Image,"ICC");
But this function return nothing. I don't know why.

Same with ImageMagick, i don't know how obtain the picture profile name. I have tried :

Code: Select all

identify -verbose mypicture.eps 
But nothing . I don't have the picture profile name.

I'm french. Sorry for my english.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with GetImageProfile

Post by magick »

First, ensure your EPS file has an embedded profile. If so, you probably need a more recent version of ImageMagick. Older versions did not recognize profiles embedded in EPS image files.
moscovisci

Re: Problem with GetImageProfile

Post by moscovisci »

Hello,

Thank you for you answer.

I think i have the last version of ImageMagick installed on my computer. My version of ImageMagick is 6.3.2 Q16.

And I'm sure that my file have an embedded profile ,i know that by opening the file with Adobe Photoshop.

If you have another idea, it will be great because i'm desesperate.

Do you know how obtain the profile name of a picture but just with ImageMagick without Php ?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with GetImageProfile

Post by magick »

Post a URL to your image so we can inspect it. Also type
  • identify -verbose image.eps
for all the information that ImageMagick knows about your EPS image.
moscovisci

Re: Problem with GetImageProfile

Post by moscovisci »

Hello,

I have two pictures for you one with an embedded profile and another without.

The picture with an embedded profile :

http://www.gys.fr/513.eps


The picture without :

http://www.gys.fr/507.eps


I would like to obtain as name of profiles something like this : AdobeRGB1998.icm or EuropeISOCoatedFOGRA27.icc.

With Photoshop I see the first EPS have an embedded profile.

Try with this pictures and tell me what you find.

Thank you
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Problem with GetImageProfile

Post by magick »

ImageMagick finds two profiles in your image. The Photoshop and XMP profiles. Its possible there is a color profile embedded in the Photoshop profile. However, ImageMagick treats profiles as blobs and does not dissect them. You can of course extract the profile and use an external process to disassemble a profile.
moscovisci

Re: Problem with GetImageProfile

Post by moscovisci »

Hello,

How have lets itself to know that my image included two profiles ?

And another question for you it's, how you can disassemble a profile ?

Thank You
Post Reply