Composite via bat file failing in Task Scheduler
Posted: 2015-06-30T18:17:47-07:00
I'm trying to take one 1280x768 image (00001.jpg) and superimpose it over a 1280x1882 image (template/template.jpg) to create a new picture (00001.png). Then it repeats the process for another different picture.
Here is my code:
This code works fine in command line when I type it out manually, and it even works when I drag the bat file into any command prompt.
However, I am unable to get the .bat file to run properly in Task Scheduler. It returns a useless 0x1 error. Is this an issue with IM or Task Scheduler? I would guess TS, but maybe someone can look over this and tell me if I'm missing something here.
I've attached:
my task scheduler setup for the .bat file: http://i.imgur.com/B9BKy0n.jpg
my folder structure: http://i.imgur.com/B3N4jIx.jpg
and an output of my cmd line's "version" info: http://i.imgur.com/tgp6NrA.jpg
[edit]
After some research, I THINK this problem occurs because of how Task Scheduler works with absolute/relative paths, but can't be completely sure. One thing's for certain, after I switched to another non-Microsoft scheduler , the problem disappeared. So, it's not a ImageMagick problem, AFAIK. This thread can be closed, if the admins feel it's appropriate.
Here is my code:
Code: Select all
composite -gravity center "P:\Automation\iballisticsquid\00001.jpg" "P:\Automation\iballisticsquid\template\template.jpg" "P:\Automation\iballisticsquid\00001.png"
composite -gravity center "P:\Automation\iballisticsquid\00002.jpg" "P:\Automation\iballisticsquid\template\template.jpg" "P:\Automation\iballisticsquid\00002.png"
However, I am unable to get the .bat file to run properly in Task Scheduler. It returns a useless 0x1 error. Is this an issue with IM or Task Scheduler? I would guess TS, but maybe someone can look over this and tell me if I'm missing something here.
I've attached:
my task scheduler setup for the .bat file: http://i.imgur.com/B9BKy0n.jpg
my folder structure: http://i.imgur.com/B3N4jIx.jpg
and an output of my cmd line's "version" info: http://i.imgur.com/tgp6NrA.jpg
[edit]
After some research, I THINK this problem occurs because of how Task Scheduler works with absolute/relative paths, but can't be completely sure. One thing's for certain, after I switched to another non-Microsoft scheduler , the problem disappeared. So, it's not a ImageMagick problem, AFAIK. This thread can be closed, if the admins feel it's appropriate.