Page 1 of 1

identify maximum no longer working

Posted: 2014-02-12T11:46:16-07:00
by fmw42
In 6.8.6.10 a new feature was added to identify to locate the position of the maximum value as follows


identify -define identify:locate=maximum -define identify:limit=7 rose:
Channel maximum locations:
Red: 46,8 47,8 49,9 50,9 51,9 52,9 53,9
Green: 61,11 64,11 61,12 62,12 62,13 63,13 65,14
Blue: 61,11 62,11 63,11 10,12 62,12 10,13 11,13


This no longer works as of IM 6.8.8.2 and was likely lost when identify -moments was added.

In IM 6.8.8.5 Q16 Mac OSX, I now get

rose:=>ROSE PPM 70x46 70x46+0+0 8-bit sRGB 9.67KB 0.000u 0:00.159


There also appears to be a bug in the 6.8.6.10 version. It does not allow the use of MPC format.


convert rose: rose.mpc

im68610 identify -define identify:locate=maximum -define identify:limit=1 rose.mpc
identify: incompatible API `rose.mpc' @ error/mpc.c/ReadMPCImage/778.

Re: identify maximum no longer working

Posted: 2014-02-12T17:08:46-07:00
by magick
We can reproduce the problem you posted and have a patch in ImageMagick 6.8.8-6 Beta, available by sometime tomorrow. Thanks.

Re: identify maximum no longer working

Posted: 2014-02-12T23:53:55-07:00
by snibgo

Code: Select all

-define identify:locate=maximum -define identify:limit=7
Those looks useful, and I didn't know about them. Are they documented somewhere? Any other undocumented "-defines"?

Re: identify maximum no longer working

Posted: 2014-02-13T05:04:31-07:00
by magick

Re: identify maximum no longer working

Posted: 2014-02-13T06:59:30-07:00
by snibgo
Thanks.

Re: identify maximum no longer working

Posted: 2014-02-13T15:42:53-07:00
by fmw42
snibgo wrote:Any other undocumented "-defines"?
see http://www.imagemagick.org/script/comma ... php#define

though probably not a complete list.

Also see http://www.imagemagick.org/script/formats.php#supported. Some are listed with each relevant image format

Re: identify maximum no longer working

Posted: 2014-02-13T16:23:35-07:00
by snibgo
Thanks, yes I knew about those two. Magick pointed me to the "identify" page, which has these options. I hadn't thought of looking there.

As we can't do "convert -list define", it would be neat if all the defines could be mentioned on a single page, probably the command page.

Re: identify maximum no longer working

Posted: 2014-02-13T18:13:28-07:00
by fmw42
snibgo wrote:Thanks, yes I knew about those two. Magick pointed me to the "identify" page, which has these options. I hadn't thought of looking there.

As we can't do "convert -list define", it would be neat if all the defines could be mentioned on a single page, probably the command page.
I have been trying to add them as I learn about them. I did not include the ones for identify, because the page is for convert -defines.

There are a bunch more on the distort page from Anthony.