Page 1 of 1

Syntax problem

Posted: 2018-02-01T07:47:03-07:00
by pchun
I am playing a bit with different examples from IM documentation and keep encountering a problem with all examples where this style of syntax is present (example directly copied from documentation)

Code: Select all

convert zelda_text.jpg   \( zelda_text_mask.gif -background white -alpha shape \) -flatten zelda_mask_overlay.jpg
Such commands always fail with unable to open image "\("
Where am I wrong?
My IM is 7.0.3 Q16

Re: Syntax problem

Posted: 2018-02-01T07:55:07-07:00
by holden
IM generally doesn't like extra spaces, try something like this:
convert zelda_text.jpg \(zelda_text_mask.gif -background white -alpha shape \) -flatten zelda_mask_overlay.jpg

could be the backslashes too, not sure though since I don't use them like this

Re: Syntax problem

Posted: 2018-02-01T08:47:48-07:00
by Bonzo
Are you using windows or Linux?

You do not need to escape the ( ) on windows and it will fail if you do.

Also replace convert with magick in version 7