Page 1 of 1
Docs: -define identify:stuff
Posted: 2017-03-20T15:49:14-07:00
by snibgo
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?
Re: Docs: -define identify:stuff
Posted: 2017-03-20T15:57:06-07:00
by fmw42
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
Re: Docs: -define identify:stuff
Posted: 2017-03-20T16:16:37-07:00
by snibgo
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:
Re: Docs: -define identify:stuff
Posted: 2017-03-20T17:25:22-07:00
by fmw42
OK, I will add it.
Re: Docs: -define identify:stuff
Posted: 2017-03-23T16:19:24-07:00
by fmw42
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