how to get color average of a img ?

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
linjuming
Posts: 122
Joined: 2011-01-25T00:09:50-07:00
Authentication code: 8675308

how to get color average of a img ?

Post by linjuming »

how to get color average of a img,
and how to fix $v[1x1] ?

Image
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: how to get color average of a img ?

Post by anthony »

You need to quote or backslash the special [..] characters, within the exec. This is to prevent the shell using the characters instead of passing it to the "convert" commands.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply