Skip to content
This repository has been archived by the owner on Jun 25, 2021. It is now read-only.

Tiff: IOError: cannot identify 16-bit TIF file #1

Closed
vigliensoni opened this issue Sep 11, 2017 · 5 comments
Closed

Tiff: IOError: cannot identify 16-bit TIF file #1

vigliensoni opened this issue Sep 11, 2017 · 5 comments

Comments

@vigliensoni
Copy link
Member

When trying to convert a TIF image to PNG with this wrapper, a "cannot identify image file" error is raised. This behavior seems to be related to the inability of PIL to handle images with individual channels > 8 bit (python-pillow/Pillow#1888).

We should find a way of opening 16-bit TIF files.

@vigliensoni
Copy link
Member Author

@deepio This seems to have been fixed in the latest Gamera release. Check https://github.com/hsnr-gamera/gamera/releases/tag/3.4.3

@vigliensoni
Copy link
Member Author

@martha-thomae Could you please provide your insights with this issue?

@martha-thomae
Copy link

Hi @vigliensoni.
Yes, I also had some issues when trying to display TIF images in Rodan and when trying to convert them into PNG within Rodan and in my case these images were already 8-bit. The issue with my TIF images was that they used an uncommon ColorSync Profile (OS14K_A1_B8_oG_IT8_270109_editiert). When I changed this into a more standard profile like Adobe RGB (1988) or Generic RGB Profile, the problem was solved. I can now view these images in Rodan and use them in different Rodan jobs such as Pixel and any PIL Conversion job (including conversion to PNG). All of these were impossible using the older (weirder) color profile.

@martha-thomae
Copy link

We could include a PIL job that changes the color profile of an image. I have the code I used for this (but I also tried other ways besides PIL, I used Automator and also there is an option in Preview to assign a profile).

@deepio
Copy link
Member

deepio commented Aug 16, 2019

Issue was fixed when updating pil-rodan. It was also tested on staging and there was no error. 16bit tiff file worked!

@deepio deepio closed this as completed Aug 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants