#136 TIFF unrecognized tag gives error

closed-works-for-me
5
2010-02-19
2010-02-19
No

When opening some multipage tiff images with unrecognized tags, graphicsMagick is unable to open them. I get the following error

gm display: Internal error, unknown tag 0xc697. (TIFFFieldWithTag).

I also get the same error with 'gm identify'. I can open the image with ImageJ no problem, and ImageMagick opens and recognizes all frames (although it also gives an warning about an unrecognized tag).

I attached a file that should be able to duplicate this error. I'm using GraphicsMagick 1.3.5 2009-01-26 Q8 in linux.

Discussion

  • Carnë Draug

    Carnë Draug - 2010-02-19

    Image to duplicate error

     
    Attachments
  • Bob Friesenhahn

    Bob Friesenhahn - 2010-02-19

    I am pretty confident that this problem must be related to the libtiff you are using. It is libtiff which is producing this error message. Using latest development libtiff (4.0.0beta5), I am able to view your image without a problem. What version of libtiff is reported to be used using this command?

    gm convert -list format | grep LIBTIFF

    For example, this is what I see

    % gm convert -list format | grep LIBTIFF
    TIFF P rw+ Tagged Image File Format (LIBTIFF, Version 4.0.0beta5)

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2010-02-19
    • labels: --> File Format Support
    • assigned_to: nobody --> bfriesen
     
  • Carnë Draug

    Carnë Draug - 2010-02-19

    Ok. I'm using libtiff version 3.8.2

    TIFF P rw+ Tagged Image File Format (LIBTIFF, Version 3.8.2)

    I'll try to install the new version. Thanks

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2010-02-19

    I have also verified that libtiff 3.9.2 works ok with GraphicsMagick 1.3.10 to read your TIFF file.

     
  • Carnë Draug

    Carnë Draug - 2010-02-19

    Just for the record, I upgraded to 3.9.2 (so I didn't had to compile from source, just downloaded from debian unstable repositories) and that solved the problem. Thanks a lot.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2010-02-19

    Ok. great. I will close this bug then.

     
  • Bob Friesenhahn

    Bob Friesenhahn - 2010-02-19
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks