using an internal path in a command
Posted: 2019-08-14T12:09:38-07:00
To anyone who can help !
Observe the following command;
magick -font Courier-New -page 940x600 TEXT:fxDTable.txt +repage fxDTable.jpg
It works perfectly for what I need it to do (i.e. convert a text file to a jpeg)
So whats the problem ? The path to the file in the next command is the problem.
"C:\Program Files\ImageMagick-7.0.8-Q16\magick -font Courier-New -page 940x600 TEXT:c:\temp\fxrpts\fxDTable.txt +repage fxDTable.jpg
There are several issues here;
1) the path to the magick executable seems to work fine, things get sticky when I put a path after the 'TEXT:' part of the command (i.e. c:\temp\fxrpts...). I get a 'cannot find file' message.
2) Besides the above there may be a problem with parsing the break in such a long command line. How is this usually handled ?
3) I have seen in the documentation a parameter called 'MAGICK_TEMPORARY_PATH'. Would this be necessary or even helpful to my cause ?
4) I would really like to have a pdf file instead of a jpeg, but I have not been able to get this to work. Would you know the change I have to make to get a pdf as the output file ?
If it helps, I am using this command under AutoHotKey to automate a process. Their documentation states that a line break can be handled with an 'and' or ',' or '&&' but imagemagick may not like this.
Thank You for any help you can provide
Observe the following command;
magick -font Courier-New -page 940x600 TEXT:fxDTable.txt +repage fxDTable.jpg
It works perfectly for what I need it to do (i.e. convert a text file to a jpeg)
So whats the problem ? The path to the file in the next command is the problem.
"C:\Program Files\ImageMagick-7.0.8-Q16\magick -font Courier-New -page 940x600 TEXT:c:\temp\fxrpts\fxDTable.txt +repage fxDTable.jpg
There are several issues here;
1) the path to the magick executable seems to work fine, things get sticky when I put a path after the 'TEXT:' part of the command (i.e. c:\temp\fxrpts...). I get a 'cannot find file' message.
2) Besides the above there may be a problem with parsing the break in such a long command line. How is this usually handled ?
3) I have seen in the documentation a parameter called 'MAGICK_TEMPORARY_PATH'. Would this be necessary or even helpful to my cause ?
4) I would really like to have a pdf file instead of a jpeg, but I have not been able to get this to work. Would you know the change I have to make to get a pdf as the output file ?
If it helps, I am using this command under AutoHotKey to automate a process. Their documentation states that a line break can be handled with an 'and' or ',' or '&&' but imagemagick may not like this.
Thank You for any help you can provide