Page 1 of 1

Issue with my command '(' in syntax

Posted: 2016-01-24T01:33:54-07:00
by uksz
Hey!

I am wondering where did I made mistake in the following:

convert pictureB.png ( pictureA.png -resize 100 ) -gravity center -composite output.png

I get the following error:

syntax error near unexpected token `('


Sorry if thats a newbie quesiton - I am beginner with ImageMagick

Re: Issue with my command '(' in syntax

Posted: 2016-01-24T01:35:28-07:00
by uksz
What I've tried is this:

convert pictureB.png \( pictureA.png -resize 100 \) -gravity center -composite output.png


But it gives me the follwoing error:

convert: unable to open image `(pictureA.png': No such file or directory @ error/blob.c/OpenBlob/2675.
convert: unable to open file `(pictureA.png' @ error/png.c/ReadPNGImage/3912.
convert: no images defined `output.png' @ error/convert.c/ConvertImageCommand/3212.

Re: Issue with my command '(' in syntax

Posted: 2016-01-24T01:41:18-07:00
by uksz
Alright, I got it to the following state:

convert pictureB.png \pictureA.png -resize 25%\ -gravity center -composite output.png

and it tells me

convert: unable to open image `center': No such file or directory @ error/blob.c/OpenBlob/2675.
convert: no decode delegate for this image format `' @ error/constitute.c/ReadImage/501.

EDIT:

Sorry for spamming - I have no idea how to change the topic of the issue, nor I know how to delete my posts.. :?

Re: Issue with my command '(' in syntax

Posted: 2016-01-24T10:01:33-07:00
by snibgo
How are you running these commands, on what system (bash, Windows, whatever)? Are you typing them at the console, or in a script, or are you using something like PHP?