03-30-2026 05:31 PM
I have 2 different LabVIEW .tif file readers that I acquired years ago. But some .tif files can't be read by one, some can't be read by the other, and some can't be read by either of them.
Does anyone have a .tif file reader that works all the time?
03-30-2026 06:07 PM
I have a tiff reader built in .net framework. It loads from file and export to the Clipboard. Does that works for you?
Not sure if it "works all the time". Can you post your tiff file?
03-30-2026 07:27 PM
I need the app to run on a Mac, so .net won't work for me.
The attached file is one that I can't read.
03-30-2026 08:32 PM
This is a 32-bit uncompressed tiff file. Nothing special.
I don't know Mac.
03-30-2026 09:39 PM
@zou wrote:
This is a 32-bit uncompressed tiff file. Nothing special.
I don't know Mac.
And yet I can't find anything that will read it.
03-31-2026 02:15 AM
This one seems to be OK for your particular image.
03-31-2026 03:14 AM
I'm a bit busy at the moment but will check with your image with a library I build. It's still a project under construction with not just TIFF but also GIF and some beginnings of BMP. Also would be cool to add PNG but that is probably going to be long off since I would like to keep it all entirely G code and the zlib compression commonly used in PNG is not easy to implement in G in a way that is not going to suck performance wise. I'm not currently even considering JPG, that is simply to much math for my taste. 😁
03-31-2026 07:05 AM
@zou wrote:
This is a 32-bit uncompressed tiff file.
the pillow library can read this, we then can use the python node to access the image's pixels in labview
03-31-2026 10:28 AM
@Andrey_Dmitriev wrote:
This one seems to be OK for your particular image.
Gee, that looks familiar. As I now recall, I took that, "cleaned it up" (making it faster), and that's what I've been using. But now I've discovered that my "clean up" broke it for TIFF files that have an alpha channel. So I fixed that; and then I did some more clean up: I replaced the array of IFDs with a map (which speeds things up).