Imagemagick issues

mikeweeks

  • Joined: Jul 29, 2011
  • Posts: 3

Fri 7/29/2011 - 20:47

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

 

 

 

test3.waj

#1

mikeweeks

  • Joined: Jul 29, 2011
  • Posts: 3

Sun 7/31/2011 - 23:16

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

 

 

test2.waj test3_0.waj

#2

Samantha

  • Joined: Apr 23, 2010
  • Posts: 2330

Wed 8/3/2011 - 11:22

Hi Mike! Not quite sure I got them in the right order, however, please check the job attached, it should cover what you're after! Let me know if this is what you were after, or whether you need any further assistance with it :) Samantha

Grotto2,3.waj

#3

mikeweeks

  • Joined: Jul 29, 2011
  • Posts: 3

Mon 8/8/2011 - 21:46

Many thanks that has done the trick.

 

Mike

#4
Not a member yet? Register

Copyright 2013 - Softomotive Ltd