Imagemagick issues
mikeweeks
![]()
- Joined: Jul 29, 2011
- Posts: 3
I have the following file that if I drag an image onto runs perfectly well and I am trying to convert to work with winautomation;
@ECHO OFF
convert ( %1 -rotate "-90>" -resize 1200 -gravity west -extent 2700x1800 ) -pointsize 75 -annotate +1440+100 "To buy more Images please go to" -pointsize 75 -annotate +1440+200 www.dorsetphotoevent.co.uk/gallery -pointsize 75 -annotate +1440+300 "Click on Access Gallery and then" -pointsize 75 -annotate +1440+400 "Enter your code %~n1" D:\test\%~n1.jpg
%1 needs to be the input image
%~n1 is the file name without file extension
I have made this to be;
convert ("%FileTriggerFilePath%" -rotate "-90>" -resize 1200 -gravity west -extent 2700x1800) -pointsize 75 -annotate +1440+100 "To buy more Images please go to" -pointsize 75 -annotate +1440+200 www.dorsetphotoevent.co.uk/gallery -pointsize 75 -annotate +1440+300 "Click on Access Gallery and then" -pointsize 75 -annotate +1440+400 "Enter your code %FileNameNoExtension%" "d:\automate\Print\\%FileName%"
the job is attached
mikeweeks
![]()
- Joined: Jul 29, 2011
- Posts: 3
Well I managed to get it working but cant see why. What I have ended up with is 2 jobs that I cant see how to combine. Thats my challenge to turn these 2 jobs into one.
The issues relate around when items are lists or items.
Mike
Samantha
![]()
- Joined: Apr 23, 2010
- Posts: 2330
mikeweeks
![]()
- Joined: Jul 29, 2011
- Posts: 3
Many thanks that has done the trick.
Mike