[Numpy-discussion] [OT] any image io module that works with python3?

Nadav Horesh nadavh@visionsense....
Sat Mar 12 14:15:54 CST 2011


It started to work after processing it with 2to3 and omitting the conversion of file names with the str function (I supply the file names as "bytes").
Issues:
  1. It refuses to save in jpeg format
  2. There is a worning of possible segfult on 64 bit machine (which is the target platform).

I'll keep on test it.

 Thank you
    Nadav.

________________________________________
From: numpy-discussion-bounces@scipy.org [numpy-discussion-bounces@scipy.org] On Behalf Of Zachary Pincus [zachary.pincus@yale.edu]
Sent: 12 March 2011 14:35
To: Discussion of Numerical Python
Subject: Re: [Numpy-discussion] [OT] any image io module that works with        python3?

Here's a ctypes interface to FreeImage that I wrote a while back and
was since cleaned up (and maintained) by the scikits.image folk:

https://github.com/stefanv/scikits.image/blob/master/scikits/image/io/_plugins/freeimage_plugin.py

If it doesn't work out of the box on python 3, then it should be
pretty simple to fix.

Zach



On Mar 12, 2011, at 4:40 AM, Christoph Gohlke wrote:

>
>
> On 3/12/2011 1:08 AM, Nadav Horesh wrote:
>> Having numpy, scipy, and matplotlib working reasonably with
>> python3, a
>> major piece of code I miss for a major python3 migration is an
>> image IO.
>> I found that pylab's imread works fine for png image, but I need to
>> read
>> all the other image format as well as png and jpeg output.
>> Any hints (including advices how easyly construct my own module) are
>> appreciated.
>> Nadav.
>>
>
> On Windows, PIL (private port at
> <http://www.lfd.uci.edu/~gohlke/pythonlibs/#pil>), PythonMagick
> <http://www.imagemagick.org/download/python/>, and pygame 1.9.2pre
> <http://www.pygame.org> are working reasonably well for image IO. Also
> the FreeImage library <http://freeimage.sourceforge.net/> is easy to
> use
> with ctypes <http://docs.python.org/py3k/library/ctypes.html>.
>
> Christoph
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion

_______________________________________________
NumPy-Discussion mailing list
NumPy-Discussion@scipy.org
http://mail.scipy.org/mailman/listinfo/numpy-discussion


More information about the NumPy-Discussion mailing list