You need the Python Imaging Library (PIL) but alas! the PIL project seems to have been abandoned. In particular, it hasn't been ported to Python 3. So if you want PIL functionality in Python 3, you'll do well do use Pillow, which is the semi-official fork of PIL and appears to be actively developed. Actually, if you need a modern PIL implementation at all I'd recommend Pillow. It's as simple as pip install pillow
. As it uses the same namespace as PIL it's essentially a drop-in replacement.
How "semi-official" is this fork? you may ask. The About page of the Pillow docs say this:
As more time passes since the last PIL release, the likelihood of a
new PIL release decreases. However, we’ve yet to hear an official “PIL
is dead” announcement. So if you still want to support PIL, please
report issues here first, then open corresponding Pillow tickets here.
Please provide a link to the first ticket so we can track the issue(s)
upstream.
However, the most recent PIL release on the official PIL site is dated November 15, 2009. I think we can safely proclaim Pillow as the successor of PIL after (as of this writing) nearly eight years of no new releases. So even if you don't need Python 3 support, I suggest you eschew the ancient PIL 1.1.6 distribution available in PyPI and just install fresh, up-to-date, compatible Pillow.
scipy.__version__
gives0.9.0
for me and i cannot reproduce your problem – Bathfrom scipy.misc import imread
, and thenimread('test.tif')
? – Zerelda0.10.1
. – Exanthemaimread
was deprecated in SciPy 1.0.0, and is removed in 1.2.0. Useimageio.imread
instead. – Toothimageio
a replacement for scipy'smisc
? Because, inscipy.misc
there wasimresize
functionality, which is not there inimageio
. Can someone help me with this? Thank you. – Harangue