bugGNU Octave - Bugs: bug #36638, imread error while loading a TIFF...

 
 

bug #36638: imread error while loading a TIFF file

Submitter:  FSWFSW <richar039>
Submitted:  Tue 12 Jun 2012 03:05:11 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Wont Fix Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 3.6.1 Operating System:  * Microsoft Windows
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 13 Jun 2012 11:19:19 AM UTC, comment #6: 

Hi Jordi,

Thanks a lot for you guys' help!

FSWFSW <richar039>
Tue 12 Jun 2012 06:28:43 PM UTC, comment #5: 

Upon further investigation, Matlab can't read your file either.  It only fails silently:

http://paste.osuv.de/index.php/PFmhI/

And here's a transcript from someone trying to figure out what this tiff is:


<bofh__> uh
<bofh__> preliminaries:
<bofh__> it's using rgb48le as a pixelformat. wtf?
<bofh__> whatever the pictureformat inside it, it's uncompressed. try running it through bzip2 -9. it shrinks to a tenth of its original filesize.
<bofh__> whatever the pictureformat inside it is*
<bofh__> libtiff can't open it because the version on the CSC machines does not support pixelformats with 16 bits per sample, which rgb48le qualifies as.
<bofh__> ffmpeg transcodes it to a png of size ~174KB, which appears to be blank.
<bofh__> it's broken because it's using 16bits/sample for a pixelformat, and the headers are completely fucked and missing fields, and the fields are severely out-of-order on top of that.


Conclusion: whatever made this TIFF made a really bad TIFF. It looks like you made it with Aptina Imaging and it's a snapshot from a video. Looks like devware.exe which generated this can't generate TIFF properly.

I think marking this bug as "wontfix" is now justified.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Tue 12 Jun 2012 05:34:16 PM UTC, comment #4: 

I'm unable to open this tiff with gimp, imagemagick, graphicsmagick, eye of Gnome (Gnome's image viewer), and I am told Preview.app from MacOS10 and Photoviewer from Windows can't open it either.

If you really care to have this work in Octave, you will have to ask the imagemagick devs to figure out a way to read this tiff, which no one else has been able to do, or tell us which library can we use in Octave to read it.

I am tentatively marking this wontfix, as nobody but Matlab is able to read your TIFF, and we are not likely to be implementing in Octave special logic independently of imagemagick for reading it. I hope you agree.

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Tue 12 Jun 2012 04:53:44 PM UTC, comment #3: 

rar?

In the future, can you please use a free format?

I have found the image in question in Nabble and have gzipped it instead and uploaded.

I can't open this TIFF with anything. My tools think it's a badly formed TIFF image. You may have to bring this up with the imagemagick people and see if they care to figure out how to read this file.


(file #26012)

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Tue 12 Jun 2012 04:38:54 PM UTC, comment #2: 

Hi Jordi, i didn't notice that the file exceed the size limit for attachment, sorry about that, now it's there....

FSWFSW <richar039>
Tue 12 Jun 2012 04:27:32 PM UTC, comment #1: 

You seem to have forgotten to attach a file...

Jordi Gutiérrez Hermoso <jordigh>
Group Member
Tue 12 Jun 2012 03:05:11 PM UTC, original submission:  

Hi,

I am dealing with a simple image process work with Octave, but I got a very strange error when I tried to load a TIFF file (the file I attached together with this post) by using imread, the warning and error shown as follows:

warning: Magick++ coder error: Magick: Incorrect count for "ImageWidth". (TIFFFetchNormalTag) reported by coders/tiff.c:
610 (TIFFErrors)
error: imread: invalid image file: _magick_read_: invalid INDEX vector
error: called from:
error:   D:\Octave\Octave3.6.1_gcc4.6.2\share\octave\3.6.1\m\image\imread.m at line 74, column 7

I can successfully load this file by using imread in Matlab instead, this is something I don't understand, anybody knows why this error happened with Octave? Thanks!

FSWFSW <richar039>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #26012:  test_1.tif.gz added by jordigh (389KiB - application/x-gzip)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jordigh (Posted a comment)
  • -email is unavailable- added by richar039 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2012-06-12 jordigh StatusNone Wont Fix
        Open/ClosedOpen Closed
    2012-06-12 jordigh Attached File- Added test_1.tif.gz, #26012
    2012-06-12 jordigh Attached File#26011 Removed
    2012-06-12 richar039 Attached File- Added test_1.rar, #26011

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code