Author Topic: TIF import fails  (Read 3951 times)

Offline balt

  • Newcomer
  • Posts: 21
TIF import fails
« on: 2011 June 16 18:37:30 »
Hi all,

I'm trying to open a TIF file (tried both a regular TIF and TIFF-16), both times with the same error:

TIFF Error:
<my filename>
SubjectDistance: Rational with zero denominator (num = 4294967295)

The offending image (one of them, all TIF's I tried result in the same) can be downloaded here:

http://xplanet-sydney.inside.net/Botanical_Garden_May_2011_0029.tif.zip

Bug, or unsupported file format, or both? It would be great if this could be made to work!

Cheers

- Balt

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: TIF import fails
« Reply #1 on: 2011 June 17 08:06:54 »
I can confirm this problem. I'll try to release a new version of the TIFF format support module ASAP.

It is actually a bug (in LIBTIFF) since the use of a rational tag with zero denominator is documented and legal in this case.

Thank you for the test image, and sorry for the inconvenience.
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: TIF import fails
« Reply #2 on: 2011 June 17 09:37:00 »
Hey Juan, since you are going to hack the TIF library, could you do something to load the images taken by MetaFluor, microscopy? They have non standard header entries, that makes the loading fail. I guess that an "ignore policy" could be the trick, instead of exiting with error.
I think that I already sent to you one of those frames in the past... if not, let me know ;)

;) Thanks

Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: TIF import fails
« Reply #3 on: 2011 June 17 14:34:09 »
Just in case, here is one of the files...
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline balt

  • Newcomer
  • Posts: 21
Re: TIF import fails
« Reply #4 on: 2011 June 17 22:59:33 »
Hi Juan,

thanks for looking into this. Let me know if there's anything else I can do to help.

Cheers

- Balt

Offline Juan Conejero

  • PTeam Member
  • PixInsight Jedi Grand Master
  • ********
  • Posts: 7111
    • http://pixinsight.com/
Re: TIF import fails
« Reply #5 on: 2011 June 18 03:49:33 »
Hi Balt,

This bug is now fixed. Later I'll publish an updated TIFF module that works in a more permissive mode by default. Your image loads without problems --nice trees by the way :)

Carlos, that TIFF file is not valid. There's no way to load it, even by hacking libtiff. Sorry!
Juan Conejero
PixInsight Development Team
http://pixinsight.com/

Offline Carlos Milovic

  • PTeam Member
  • PixInsight Jedi Master
  • ******
  • Posts: 2172
  • Join the dark side... we have cookies
    • http://www.astrophoto.cl
Re: TIF import fails
« Reply #6 on: 2011 June 18 08:16:49 »
Juan,
The issue is that are other software that do open it without problems. KolourPaint, showFoto and GIMP, for example. I'm almost sure that is something wrong with the header information, but those programs manage to ignore that, and open the matrix data anyway.
Regards,

Carlos Milovic F.
--------------------------------
PixInsight Project Developer
http://www.pixinsight.com

Offline Nocturnal

  • PixInsight Jedi Council Member
  • *******
  • Posts: 2727
    • http://www.carpephoton.com
Re: TIF import fails
« Reply #7 on: 2011 June 18 09:49:03 »
< Grabs the popcorn and says 'good luck' to Carlos :) >
Best,

    Sander
---
Edge HD 1100
QHY-8 for imaging, IMG0H mono for guiding, video cameras for occulations
ASI224, QHY5L-IIc
HyperStar3
WO-M110ED+FR-III/TRF-2008
Takahashi EM-400
PIxInsight, DeepSkyStacker, PHD, Nebulosity

Offline balt

  • Newcomer
  • Posts: 21
Re: TIF import fails
« Reply #8 on: 2011 June 20 05:06:13 »
Hi Juan,

excellent, thanks! Updated and it works with all my 'blad TIF's, including the 16bit ones. Awesome!

You may want to advertise pixinsight as "not just for astronomical use"... ;-)

Cheers

- Balt