Page 1 of 1

Annotations Breaking nconvert for .MAG files

Posted: Wed Dec 11, 2019 3:12 pm
by qdean
I'm using nconvert for a multimillion document extraction and conversion from a Document management system called Fortis.
The nconvert tool has been taking these document types like a champ and converting them to compression 4 tiffs, but after increasing my sample size in Test I'm starting to run into issues.

Certain documents give me this error:
my_error_exit...<Not a JPEG file: starts with 0x57 0x54>
Error: Don't know how to read this picture (\\ITRECORDS\ARCHIVE\ACC\WTI1C0\0001C0DE.MAG)

I believe some of this is the way Fortis saves their annotation information. (Which is bad practice I know) After running some of the erroring documents through a hex editor I get annotation information in the header or I see there are annotations on the document. I'm still looking into it and trying to figure out how annotations get stored on these MAG files so maybe I can strip them out.

My question is, is there anyway we can re-mediate this? Have you guys seen this issue before? Is there a way to detect annotations and strip them from the document?

Re: Annotations Breaking nconvert for .MAG files

Posted: Wed Dec 11, 2019 3:31 pm
by cday
You could possibly upload a sample file, if you are able to, that illustrates the problem for Pierre -- the only developer of all XnView software -- to have a look at if he has time...

Otherwise, you could possibly try the following option:

Code: Select all

-ignore_errors    : Ignore errors
... a rather long shot, I would think!

Re: Annotations Breaking nconvert for .MAG files

Posted: Wed Dec 11, 2019 4:21 pm
by qdean
Thanks for the quick response.

Absolutely! That's my intention. I got with my team (waiting to hear back) to make sure I'm grabbing a file that doesn't have sensitive information on it.

Yeah I did try the ignore errors flag and it still doesn't like it.

Re: Annotations Breaking nconvert for .MAG files

Posted: Wed Dec 11, 2019 8:39 pm
by qdean
The batch of files that broke for nconvert also broke under another file conversion. After more testing it looks like a number of these files are not just images but PDFs and MS Word Documents wrapped in this file type of MAG.

How does nconvert identify files? Is it just searching for an image?

Re: Annotations Breaking nconvert for .MAG files

Posted: Wed Jan 13, 2021 1:53 pm
by caracol
Was this issue resolved in version 7.60? I am planning to use this program to convert Fortis images and wanted to know if this situation has been resolved.

Re: Annotations Breaking nconvert for .MAG files

Posted: Wed Jan 13, 2021 6:58 pm
by xnview
caracol wrote: Wed Jan 13, 2021 1:53 pm Was this issue resolved in version 7.60? I am planning to use this program to convert Fortis images and wanted to know if this situation has been resolved.
Seems to be fixed in 7.41