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!