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
Issue with my command '(' in syntax
Re: Issue with my command '(' in syntax
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.
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
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..
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..
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Issue with my command '(' in syntax
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