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?".
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!!
strgg wrote:... all the code can usually be taken literally UNTIL the next "apostroph", no need for escaping.
It's already the code itself, that needs the escaping. Even if you wouldn't use PHP, but would type the command into a terminal window running a shell, you'd need
It's already the code itself, that needs the escaping. Even if you wouldn't use PHP, but would type the command into a terminal window running a shell, you'd need
blanks around the parentheses
backslash-escaped parentheses
This is the case for Unix shell. Windows shell does not need the escapes for parens, as I understand it.
Within convert, we always need a space on both sides of ( and ).
Convert itself doesn't want escape characters. But we have to ensure ( and ) are passed to the program. So the requirement for escaping depends on the shell.
Many shells are available for Windows. I generally use the cmd shell, either at the command prompt or in a BAT file. Neither of these need ( and ) to be escaped, unless the command is nested within parentheses caused by a FOR or IF or something else, in which case any close-parentheses within convert must be escaped, and I also escape the open-parentheses. See my web pages for many examples.
In Windows cmd, the escape character is caret ^ not backslash \. If cmd sees "\(", it treats these as normal characters and passes them to convert, which looks for an image named "\(".
snibgo wrote:In Windows cmd, the escape character is caret ^ not backslash \. If cmd sees "\(", it treats these as normal characters and passes them to convert, which looks for an image named "\(".
I did create a watermarked picture myself and used the given function to dewatermark.
This way we can see the best result possible to expect and if it is worth fiddeling. The result so far: