Ok. I tried escaping the parenthensis
within exec() and it works now:
Code: Select all
exec('convert image1.jpg \( watermark.png -resize 41.5% \( +clone -alpha extract +write mpr:WEX \) -compose Multiply -composite -negate \) -gravity center -compose ModulusAdd -composite \( mpr:WEX -negate \) -alpha off -compose DivideSrc -composite dewm.png');
So you were right it were the parathensis.
Its strange because usually in php within exec"bracket""apostroph" exec(' all the code can usually be taken literally UNTIL the next "apostroph", no need for escaping.
Thanks, i will fiddle and optimise the script and post before and after. THANKS for your time and help!!