Small problem in query: syntax error near unexpected token (
Posted: 2013-10-07T09:07:03-07:00
I wrote a command to create four thumbnail of the original image. I run a command in PHP using exec:
It seems that is fine, but unfortunately I get the message:
Why is this happening? what's the problem? how to fix it?
Code: Select all
convert /images/*.*
( -clone 0--1 -strip -thumbnail "68x51^>" -background white -gravity center -extent 68x51 -quality 80 +adjoin -scene 1 -write /images/%d_68x51.jpg -delete 0--1 )
( -clone 0--1 -strip -thumbnail "104x78^>" -background white -gravity center -extent 104x78 -quality 80 +adjoin -scene 1 -write /images/%d_104x78.jpg -delete 0--1 )
( -clone 0--1 -strip -thumbnail "360x270^>" -background white -gravity center -extent 360x270 -quality 80 +adjoin -scene 1 -write /images/%d_360x270.jpg -delete 0--1 )
-strip -thumbnail "1024x768>" -quality 80 +adjoin -scene 1 /images/%d_1024x768.jpg
Code: Select all
-bash: syntax error near unexpected token `('