convert: 410: MissingAnImageFilename
Posted: 2006-05-04T10:33:06-07:00
I'm using the ImageMagickObject in a VB.NET 2005 application. I've got the follwing function to convert a file to jpg:
It works fine on my development machine. When I create an msi installer, I get an error when running it on another machine. The ex.Message portion of the error is this:
convert: 410: MissingAnImageFilename '(path to destination file)': unknown
I'm assuming I'm missing something in my installer. I've packaged all the DLLs included in the ImageMagick Program Files folder and put them in the system folder during the install. Yet something is still lacking because, if I run the ImageMagick installer on the computer with the problems, the conversion works.
Help please!
Code: Select all
Public Sub SaveJpeg()
Dim MagImg As New ImageMagickObject.MagickImage
Dim Files(1) As Object
Try
Files(0) = SourceFile
Files(1) = DestFile
MagImg.Convert(Files)
Catch ex As Exception
Dim ErrMsg As String
ErrMsg = "Could not save JPEG file: " & ex.Message & vbNewLine & vbNewLine & _
"Source File: " & SourceFile & vbNewLine & _
"Destination File: " & DestFile
MsgBox(ErrMsg, MsgBoxStyle.Critical)
RaiseEvent ThreadComplete(False)
Exit Sub
End Try
RaiseEvent ThreadComplete(True)
End Sub
convert: 410: MissingAnImageFilename '(path to destination file)': unknown
I'm assuming I'm missing something in my installer. I've packaged all the DLLs included in the ImageMagick Program Files folder and put them in the system folder during the install. Yet something is still lacking because, if I run the ImageMagick installer on the computer with the problems, the conversion works.
Help please!