Page 1 of 1
Write to multiple destination paths
Posted: 2013-04-30T02:58:26-07:00
by string_theorist
Hello,
Is there a way to create one image using convert.exe, in multiple destinations?
I am using the latest build, running through a batch script on Windows 7.
Thanks for your help.
Re: Write to multiple destination paths
Posted: 2013-04-30T03:33:55-07:00
by snibgo
You can write an output almost anywhere in the command line:
Code: Select all
convert in.png {blah blah} -write a.png -write b.jp2 -write c.tiff d.jpg
Is that what you want?
Re: Write to multiple destination paths
Posted: 2013-04-30T04:41:01-07:00
by string_theorist
Thanks for your reply! That helps a lot.
Cheers!
Re: Write to multiple destination paths
Posted: 2013-04-30T07:49:15-07:00
by string_theorist
ok, so i tried the above mentioned suggestion.
this is the code:
%imageMagickPath%\convert.exe -background blue -font C:\Windows\Fonts\ebrimabd.ttf -fill white -strokewidth 2 -stroke black -pointsize 40 -size 640X480 -gravity South caption:"%%o\n%%p" -write "%backUpDestPathUNC%\DSC00%%q.jpg" -write "%cardDestPath%\DSC00%%q.jpg"
the problem may be that i am using the "caption:" sub command.
what happens is that the first -write command works. while the second returns the error:
convert.exe: option requires an argument `-write' @ error/convert/ConvertImage Command/3085.
Re: Write to multiple destination paths
Posted: 2013-04-30T10:10:26-07:00
by fmw42
the last output should not have -write before it. Or add null: to the end of the command
Re: Write to multiple destination paths
Posted: 2013-04-30T22:55:39-07:00
by string_theorist
Sweet! Thanks for your help. Solved