Calling nConvert from perl

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Post Reply
Guest

Calling nConvert from perl

Post by Guest »

I am trying to call nConvert from a perl script to convert an autocad "DWG" file to a tiff. Using the command line everything works fine, but if I attempt to do this from within a PERL script using the open(CONVERT, "c:\progra~1\xnview\nconvert.exe -v -in dwg -out tiff -o c:\temp\test.tif c:\temp\test.dwg |"); method the program never returns. nconvert shows in the process list and if I kill the process the perl script/ webpage returns. Any ideas?
User avatar
xnview
Author of XnView
Posts: 43603
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Calling nConvert from perl

Post by xnview »

Guest wrote:I am trying to call nConvert from a perl script to convert an autocad "DWG" file to a tiff. Using the command line everything works fine, but if I attempt to do this from within a PERL script using the open(CONVERT, "c:\progra~1\xnview\nconvert.exe -v -in dwg -out tiff -o c:\temp\test.tif c:\temp\test.dwg |"); method the program never returns. nconvert shows in the process list and if I kill the process the perl script/ webpage returns. Any ideas?
NConvert support DWG only with cadsofttools plugins, but this plugin doesn't works very well with NConvert.
Pierre.
Post Reply