identify maximum no longer working

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

identify maximum no longer working

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify maximum no longer working

Post 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.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: identify maximum no longer working

Post 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"?
snibgo's IM pages: im.snibgo.com
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: identify maximum no longer working

Post by magick »

snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: identify maximum no longer working

Post by snibgo »

Thanks.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify maximum no longer working

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: identify maximum no longer working

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: identify maximum no longer working

Post 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.
Post Reply