display, comment & identify

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

display, comment & identify

Post by Bonzo »

I seem to have everything working using php now apart from display, comment & identify.

As far as I can see in the posts I will only be ably to get display to work with an X server whatever that is?

But why cant I get comment or identify to work ?

Code I have tried:

Code: Select all

exec("/usr/local/bin/convert flowers.jpg -gravity Center -comment %m:%f %wx%h tests3.jpg"); 
exec("/usr/local/bin/identify flowers.jpg");
Anthony
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

This is starting to anoy me now. Why will identify not work ?

I have now tried:

Code: Select all

exec("/usr/local/bin/convert -verbose -identify zompus/50cent22.png");

exec("/usr/local/bin/convert -verbose identify zompus/50cent22.png");

exec("/usr/local/bin/convert  identify -verbose zompus/50cent22.png");

exec("/usr/local/bin/convert -verbose info: zompus/50cent22.png");

exec("/usr/local/bin/convert identify -format  zompus/50cent22.png");

exec("/usr/local/bin/convert -verbose -identify earth.jpg");

exec("/usr/local/bin/convert -verbose identify earth.jpg");

exec("/usr/local/bin/convert  identify -verbose earth.jpg");

exec("/usr/local/bin/convert -verbose info: earth.jpg");

exec("/usr/local/bin/convert identify -format  earth.jpg");

All I get is a blank page.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Use

Code: Select all

convert image.png  -verbose  info:
OR

Code: Select all

identify -verbose image.png
What you have written make no sense and probably produces errors rather than output. Check you error logs, if you can.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post by Bonzo »

I think there must be something missing in the setup as I said in the first post display, comment & identify will not work.

Display will not work as I am not on an X server ? and I assume that as identify and comment will not work and they are both using text the problem must be linked.

Debug does not output anything either ( text again ! ) am I starting to see a patern here ?

I am on a shared server and I do not have access to any error logs.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Check what is actually installed, the executable may be a slightly different name.
EG im-convert or im_convert for example.

As for 'comment' I think you mean 'convert', as comment is not a IM command.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply