NConvert is quite and not creating any image file

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

Moderators: helmut, XnTriq, xnview

Post Reply
abcuser
Posts: 3
Joined: Mon May 04, 2009 9:55 pm

NConvert is quite and not creating any image file

Post by abcuser »

I am new to xnview/nconvert tool. I would like to use nconver to convert my pdf file into jpg format.
Here is the code snippet of my app..

Sub ConvertToJPG(ByVal SourceFile, ByVal ToFile)
Dim strcmd As String
Dim objshell
strcmd = Chr(34) & "c:\program files\xnview\nconvert.exe" & Chr(34) & " -quiet -dpi 72 -out jpeg -o " & Chr(34) & ToFile & Chr(34) & " " & Chr(34) & SourceFile & Chr(34)
'WriteToLogFileImageConvert strcmd
objshell = CreateObject("Wscript.shell")
objshell.Run(strcmd, 0, True)
'objshell.Exec strcmd
objshell = Nothing
End Sub


It executes without any error. but its not creating any jpg file. My sourcefile is C:\Images\123.pdf and ToFile is c:\Images\123.jpg.

Am I missing anything else here? Please help me to fix this...

Thanks
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert is quite and not creating any image file

Post by xnview »

Try to remove -quiet to have error message?
Pierre.
abcuser
Posts: 3
Joined: Mon May 04, 2009 9:55 pm

Re: NConvert is quite and not creating any image file

Post by abcuser »

I tried without -quite and its the same :-( Its not giving any error message and its not creating any images also. Please help me to fix this...

Thanks
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: NConvert is quite and not creating any image file

Post by xnview »

abcuser wrote:I tried without -quite and its the same :-( Its not giving any error message and its not creating any images also. Please help me to fix this...
Are you sure that nconvert is launched?
Pierre.
abcuser
Posts: 3
Joined: Mon May 04, 2009 9:55 pm

Re: NConvert is quite and not creating any image file

Post by abcuser »

Yes.
Post Reply