question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mimread now broken for tiff stack

See original GitHub issue

The mimread method now throws the following error when I attempt to load in a TIFF stack:

ValueError: Could not find a format to read the specified file in mode ‘I’

This used to work in about June/July time. I’ve also tried the volread method on my test image and get:

ValueError: Could not find a format to read the specified file in mode ‘v’

I’m using a Windows machine with Python 3.4 via the WinPy package (Version 3.4.3.5). I should add that I’m sending the ‘uri’ as a string to the file directory:

im = imageio.mimread('C:\\Users\\Jeff\\Code\\Git\\PoreSpy\\test\\fixtures\\voronoi_fibers.tif')

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (5 by maintainers)

github_iconTop GitHub Comments

7reactions
mhfowlercommented, Mar 1, 2016

wooooooooooooooo

apt-get install libfreeimage-dev

solved my problem 😃

this still may be an issue in moviepy / imageio installation, in that it seems strange that python shell would have automatically downloaded and installed libfreeimage-dev to a location that other processes don’t have access to, and also that this library was installed by default as a dependency when installing imageio or moviepy

0reactions
almarkleincommented, Mar 2, 2016

mmm, maybe the prebuild freeimage library that we provide does not work on the system that you tried it on? I suppose that on most linuxes its best to use the system freeimage anyway.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when read 3d tiff image stack with skimage.io.imread()
I have the following error when I read my tiff image stack with io.imread(). But I still can print the shape and ndim...
Read more >
imageio Documentation - Read the Docs
imread(...) allows you to read all ndimages and stack them into a ndarray (using index=. . .; check the docs), this comes with...
Read more >
why WriteMode and append are not working? - Stack Overflow
THE PROBLEM IS FIXED. 'WriteMode' is not a recognized parameter is fixed by using .tif extension to all images and file as.
Read more >
TIFF TIFF format — imageio 2.5.0 documentation
Provides support for a wide range of Tiff images. Images that contain multiple pages can be read using imageio.mimread() to read the individual...
Read more >
Stack function not working with tiff files - Affinity | Forum
I've been trying to use the stack function to create star trails from around 60 tiff files created by ACDsee Photo Studio 6....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found