Issue with my command '(' in syntax

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
uksz
Posts: 3
Joined: 2016-01-24T01:31:21-07:00
Authentication code: 1151

Issue with my command '(' in syntax

Post 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
uksz
Posts: 3
Joined: 2016-01-24T01:31:21-07:00
Authentication code: 1151

Re: Issue with my command '(' in syntax

Post 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.
uksz
Posts: 3
Joined: 2016-01-24T01:31:21-07:00
Authentication code: 1151

Re: Issue with my command '(' in syntax

Post 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.. :?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Issue with my command '(' in syntax

Post 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?
snibgo's IM pages: im.snibgo.com
Post Reply