Page 1 of 1

convert program fails after recovering server.

Posted: 2008-06-25T16:51:50-07:00
by swestfal
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

Re: convert program fails after recovering server.

Posted: 2008-06-25T17:43:27-07:00
by magick
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.

Posted: 2008-06-26T06:24:11-07:00
by swestfal
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

Re: convert program fails after recovering server.

Posted: 2008-06-26T09:23:27-07:00
by swestfal
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.

Posted: 2008-06-26T11:55:08-07:00
by swestfal
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

Re: convert program fails after recovering server.

Posted: 2008-06-26T14:18:48-07:00
by swestfal
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.