Hi,
I am playing a little with OsProcessStarter and freinds to control external processes. I really like what I see so far. But I'm hitting a wall here that I don't really understand.
I'm trying to use ImageMagick on Windows. This commandline works fine in a cmd shell:
magick convert -density 150 -background white c:\tmp\input.pdf c:\tmp\output-%03d.jpg
Trying to do the same from VAST 10.0.2, I get an error message from imagemagick/convert on the error stream:
convert: unrecognized option `-density 150'' @ error/convert.c/ConvertImageCommand/1452.
So it seems like I am doing something wrong when constructing the command collection. This is my snippet to start the process:
convertStarter := OsProcessStarter new.
commandAndParams :=
OrderedCollection
with: (System osType = 'Linux' ifTrue: ['magick'] ifFalse: ['magick.exe']).
commandAndParams
add: 'convert';
add: '-density 150';
add: '-quality 75';
add: '-resize 60%';
add: '-background white';
add: '-alpha remove';
add: '-alpha off';
add: 'input.pdf';
add: 'output-%03d.jpg'.
I also tried
add: '-density'; add: '150';
and so son, but that doesn't work either.
I am a bit helpless now. Why does entering the command in a cmd work with -density 150 but not in VAST? What do I have to do here?
Joachim