We are using the imagemagickobject.dll to convert .tif to .jpg files. After recovering a disk crash the convert program has error: "convert: 410: Missing an image file name: unknown" caught with the err.discription. There don’t seem to be any code changes and has ran since 2002. Any one experienced this problem?
Thanks,
Scott
convert program fails after recovering server.
Re: convert program fails after recovering server.
Did you reinstall the same ImageMagick version or are you using a more modern version? Which parameters are you passing to Convert?
Re: convert program fails after recovering server.
The files were retrieved from the old drive. The imagemagickobject.dll would only register when it was in the same directory as the other imagemagick files, in this case ImageMagick-5.4.8-Q16. I also tried installing a more resent version but the .dll wouldn’t register.
The code segment for converting files looks something like this:
FileCount = 0
For Each F In FD.Files
FileCount = FileCount + 1
'conver from .TIF to .JPG
TIF_file_path = F.Path
JPG_file_path = Left(F.Path, 16) & "JPG"
loggingstr = "ScanAllFiles(): Image convert Start " & TIF_file_path & " " & JPG_file_path
Debug.Print loggingstr
WriteLog loggingstr
rc_cimage = CImage.Convert(TIF_file_path, JPG_file_path)
loggingstr = "ScanAllFiles(): Image convert RC = " & rc_cimage & " " & TIF_file_path
Debug.Print loggingstr
WriteLog loggingstr
Next
I added logging to capture the contents of the parameters:
6/25/2008 3:13:28 PM Received TXX0C time: 2008-06-25 15:13:28
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:10:51 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:13:12 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:12:24 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM DAECtl_GotMail(): No image found for NSPP2792.0W MR_BR1TI2AL3TN4TN2
The code segment for converting files looks something like this:
FileCount = 0
For Each F In FD.Files
FileCount = FileCount + 1
'conver from .TIF to .JPG
TIF_file_path = F.Path
JPG_file_path = Left(F.Path, 16) & "JPG"
loggingstr = "ScanAllFiles(): Image convert Start " & TIF_file_path & " " & JPG_file_path
Debug.Print loggingstr
WriteLog loggingstr
rc_cimage = CImage.Convert(TIF_file_path, JPG_file_path)
loggingstr = "ScanAllFiles(): Image convert RC = " & rc_cimage & " " & TIF_file_path
Debug.Print loggingstr
WriteLog loggingstr
Next
I added logging to capture the contents of the parameters:
6/25/2008 3:13:28 PM Received TXX0C time: 2008-06-25 15:13:28
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:10:51 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:13:12 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM The wafer complete time : 6/25/2008 3:12:24 PM
6/25/2008 3:13:28 PM ScanAllFiles(): Image convert Start E:\SP1\38D97957.TIF
6/25/2008 3:13:28 PM ScanAllFiles(): Error convert: 410: Missing an image file name: unknown
6/25/2008 3:13:28 PM DAECtl_GotMail(): No image found for NSPP2792.0W MR_BR1TI2AL3TN4TN2
Re: convert program fails after recovering server.
I found the problem. I uninstalled imagemagick then used the installer (Newer Version) ImageMagick-6.4.2-0-Q16-windows-dll.exe and during the install the screen "Select Additional Tasks" I checked the "Install ImageMagicObject OLE control for VBscript, Visual Basic, and WSH" option. This seems to align the version Activex .dll and ImageMagick modules. Thanks, Scott
Re: convert program fails after recovering server.
It appears I spoke too soon. The version I installed doesn’t create a .jpg and never throws an error. The original .dll (That worked) was dated 8/10/2002. Is there a way to get the installer for this dll?
Thanks, Scott
Thanks, Scott
Re: convert program fails after recovering server.
Ok, we are getting .jpg files again. We gave up on getting the ImageMagicObject.dll running again, and rewrote the App to shell out to a command line convert.