Neural-Systems-at-UIO / nutil

https://nutil.readthedocs.io/en/latest/
GNU General Public License v3.0
12 stars 5 forks source link

Nutil does not display error message for untiled TIFFs when only creating thumbnails #130

Closed ingrre closed 3 years ago

ingrre commented 4 years ago

I had a folder with untiled TIFFs (without being aware they were untiled) and used Nutil to get thumbnails of these files. Nutil 4.01 ran without error, but thumbs produced were only black and <40kb. See them here: Y:\HBP-Voucher_Rat-corticome\SubProject2_PosterioParietalCortex\12906\3-rotated-renamed\thumbnails-nutil4.01-untiled

Same apllies for v 4.03: Y:\HBP-Voucher_Rat-corticome\SubProject2_PosterioParietalCortex\12906\3-rotated-renamed\thumbnails

Would be great if Nutil would warn for untiled TIFFs also when 'only creating thumbnails'

leuat commented 4 years ago

@ingrre I Ran a test on these files (and they are indeed tiled), but Nutil produced correct results. This might be due to the current errors we're experiencing on the network - if you copy a couple of the files to your local hard drive, are the thumbnails correctly produced?

ingrre commented 4 years ago

@leuat did you mean to say 'correct' or 'incorrect' results? I moved ten images to C: and still only black thumbnails (They are indeed tiled! Sorry about that).

Majpuc commented 4 years ago

We found out that those tilled tiffs had been tiled with a ZIP compression which is not compatible with Nutil. The raw tiff files should be tiled using LZW compression as for the other animals in this dataset.

Majpuc commented 4 years ago

@ingrre Is this issue solved then?

Majpuc commented 4 years ago

@ingrre Could you update this issue? Thks

Majpuc commented 3 years ago

@ingrre Do you have a tiled Tiff series LZW compressed I could test on?

ingrre commented 3 years ago

Here is a tiled tiff series LZW compressed: Y:\HBP-Voucher_Rat-corticome\SubProject3_Insula\13347-mrx\3-LZW-tiled-TIFF

I just reexported this series previously mentioned: Y:\HBP-Voucher_Rat-corticome\SubProject2_PosterioParietalCortex\12906\2-TIFF-IR (with mirax viewer). Compression type: JPEG.

I ran Nutil 0.404 to create thumbnails of these images. Nutil displayed no error and was been running for 1h. In the terminal however it seems that it might be something with JPEG compression? Screenshot attached. Skjermbilde 2020-12-09 kl  10 04 39. Nutil just finished (closed without a notion) and the result is found here: Y:\HBP-Voucher_Rat-corticome\SubProject2_PosterioParietalCortex\12906\2-TIFF-IR\thumbs\thumbnails

In mirax viewer I can only choose between JPEG and uncompressed - what do I do?

Majpuc commented 3 years ago

This issue should be solved in v.0.6.0. Open a new ticket if the problem persist