cancel
Showing results for 
Search instead for 
Did you mean: 
Briner Frequent Member
Frequent Member

Convert to JPG Using ImageMagick

Hi guys,

Need some helpif possible.

We are using ImageMagick to convert pdf file to a jpg. We have been able to make it work successfully when we use the actual file name in the batch file but when we try to use parameters it does not work.

We are only using the one parameter to get the file name and I know that works as I do a save using that parameter fine.

Has anyone used ImageMagick in an External Process node?

Is there another way we can do this?

Thanks

0 Kudos
3 Replies
Briner Frequent Member
Frequent Member

Re: Convert to JPG Using ImageMagick

Anyone? :(
0 Kudos
Xerox Analyst John Bhaychuk
Xerox Analyst

Re: Convert to JPG Using ImageMagick

In the external node you could use/call cscript and use a VB script to call the commands for Image Magic. You can pass it parameters and use those values. I use it to trigger emails using Blat.

 

0 Kudos
Briner Frequent Member
Frequent Member

Re: Convert to JPG Using ImageMagick

Hi John,

We can get ImageMagick to work using a batch file through External Node.

Issue we have is passing the parameters. It fails to get those values.

Here is a sample of our file:

cd "C:\Program Files\ImageMagick-7.0.8-Q16"
magick convert -verbose -density 96 -quality 85 C:\temp\%2.pdf c:\temp\test1.jpg

The two paramaters I have in the node are: "FFin$" "$FFJobNoDisp$", the second being our job number which is the file name as well.

The workflow only consists of this external node. Nothing else is hapenning.

I also use blat for emails and that works fine.

0 Kudos