-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TIFF incorrectly identified as DeltaVision #2656
Comments
This is reproducible with 5.3 development releases as well. Basically, it's considering it a valid deltavision file if bytes 96-97 (0x60-0x61) contain the pattern
You can see that the latter file contains the @melissalinkert Is there any additional data in the .dv file format we could use to be sure it's really deltavision? If not, could we add a negative check for it being a TIFF string to eliminate this possibility? |
|
See #2658 which adds these checks. |
Sorry for the delay @gatagat. The fix for this issue has now been merged into the mainline and should be available in the upcoming Bio-Formats release. |
A deltavision .DV file always has an objective lens ID in the header which is a 5 digit number. There are a bunch of other specific meta datas in the header too. Want kind of file format spec doc have you got? Send to me and I will check with product managers at Ge if that's the best div we have. |
@chalkie666 In this specific case, we're referring to determining unambiguously if a file is a .DV file purely from a raw byte stream (i.e. no We have a HTML file overview of the format from 2004 and a couple of doc files from 2013 ( Kind regards, |
Hi Roger
I will see want info I can get for you guys.
Best
Dan
…On 29 Jun 2017 9:11 pm, "Roger Leigh" ***@***.***> wrote:
@chalkie666 <https://github.com/chalkie666> In this specific case, we're
referring to determining unambiguously if a file is a .DV file purely from
a raw byte stream (i.e. no .dv extension as a hint). In the above
example, a TIFF was being detected (wrongly) as a deltavision file. Knowing
more about the header structure of the DV format would certainly enable us
to write a more robust check.
We have a HTML file overview of the format from 2004 and a couple of doc
files from 2013 (IM_header3.doc and IM_header3_ext_hdr.doc), but these
don't mention objective IDs or anything like that. We would certainly very
much appreciate an up to date copy of the specification so we can better
support deltavision file reading in Bio-Formats.
Kind regards,
Roger
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2656 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAP2MpTqjzEs42lS98B8LDFmJpcENXkQks5sI_bXgaJpZM4KqmeO>
.
|
Hi folks. The documents that are referenced below are the most current that we have. The information they’re requesting is actually included in those documents. Any further information about the .DV file format would have to be discussed under CDA (which I’m happy to do). So those 2 .doc files contain info about how to read the header. That info should make it unambiguous if a file is or is not a deltavision file. |
@chalkie666 Thank you for following up. We'll see what improvements we can make using these specification documents. Kind regards, |
@chalkie666 commented:
@rleigh-codelibre commented:
The objective ID is a 2 byte signed integer, in base 0 bytes 162-163. For what is worth, the objective ID is named |
Thanks @carandraug, looking at the reader we are parsing the |
The
bfconvert
tool fails to read a tiff image because it identifies it as DeltaVision image (wrong) and then fails reading it. Exact stack trace is below.If detecting the format is not possible, a
-format
switch could be added tobfconvert
to be able to force a specific format.Two test files (one loading correctly, one not) are uploaded under 17411 in the QA system.
Thanks.
Bioformats: 5.2.4
The text was updated successfully, but these errors were encountered: