Hi everyone, i hope you can help

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
badlogicgame
Posts: 1
Joined: 2019-03-02T00:32:22-07:00
Authentication code: 1152

Hi everyone, i hope you can help

Post by badlogicgame »

Hi everyone,
I want to combine serveral commands to create one Image to get the rigth output I have to compose different images and colorize them In a specific order, I have image a, b, c, d and e and I want to create one image like that:

a.png b.png -composite -gravity center -channel RGB -evaluate multiply 0.9 step1.png

c.png d.png -composite -gravity center -channel RGB -evaluate multiply 0.9 step2.png

step1.png step2.png e.png -composite -gravity center result.png

but in one command like that

((a.png b.png -composite -gravity center -channel RGB -evaluate multiply 0.9) (c.png d.png -composite -gravity center -channel RGB -evaluate multiply 0.9) -composite -gravity center) e.png -composite -gravity center result.png

but with brackets it doesn't work. Is there a way to archieve this or is there another strategy for Example Layers which can be adjust for this purpose?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Hi everyone, i hope you can help

Post by snibgo »

badlogicgame wrote:... but with brackets it doesn't work.
What happens? Do you get a bad result, or an error message, or what?

What version of IM, on what platform? What are your exact commands? I expect they start with "convert" or "magick".

You should have a space both before and after every parenthesis ( ) .

After each "-channel RGB", you should have "+channel" to restore the normal processing.
snibgo's IM pages: im.snibgo.com
Post Reply