Docs: -define identify:stuff

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

Docs: -define identify:stuff

Post by snibgo » 2017-03-20T15:49:14-07:00

In http://www.imagemagick.org/script/comma ... php#define , the new defines for "identify:locate=minimum" etc and "identify:limit=N" are not documented. Can they be included, please?
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 20743
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Docs: -define identify:stuff

Post by fmw42 » 2017-03-20T15:57:06-07:00

That is likely because the defines are for convert/magick and not identify/magick identify. See last example at http://www.imagemagick.org/script/identify.php

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

Re: Docs: -define identify:stuff

Post by snibgo » 2017-03-20T16:16:37-07:00

Ah, yes, I hadn't found them on the http://www.imagemagick.org/script/identify.php page, but I see it now.

I think it would be helpful if http://www.imagemagick.org/script/comma ... php#define listed all defines recognised by IM.

Those defines also work with "-identify" within a "convert" command, eg:

Code: Select all

convert ^
  rose: ^
  ( +clone -fill Pink -colorize 100 ) ^
  -compose Difference -composite ^
  -grayscale Average ^
  -define identify:locate=minimum -define identify:limit=1 -identify ^
  NULL:
snibgo's IM pages: im.snibgo.com

User avatar
fmw42
Posts: 20743
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Docs: -define identify:stuff

Post by fmw42 » 2017-03-20T17:25:22-07:00

OK, I will add it.

User avatar
fmw42
Posts: 20743
Joined: 2007-07-02T17:14:51-07:00
Location: Sunnyvale, California, USA

Re: Docs: -define identify:stuff

Post by fmw42 » 2017-03-23T16:19:24-07:00

I have added documentation for this to the options page. It may take a day or so to show up. But it can be used with both identify and convert/magick.

Code: Select all

convert -size 10x256 gradient: -rotate 90 grad.png

Code: Select all

identify -verbose -define identify:locate=maximum -define identify:limit=3 grad.png
Channel maximum locations:
Gray: 65535 (1) 255,0 255,1 255,2

Code: Select all

convert grad.png -verbose -define identify:locate=maximum -define identify:limit=3 info:
Channel maximum locations:
Gray: 65535 (1) 255,0 255,1 255,2

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests