[SciPy-user] fromimage returns instance instead of numpy array

Robert Kern robert.kern@gmail....
Thu Oct 4 18:16:06 CDT 2007


Sebastian wrote:
> Hello,
> after I updated numpy and scipy to the newest version a script which uses the
> scipy.misc.pilutil package dosent't work any more. The function "fromimage"
> returns an image as image and dosen't convert it to a numpy array.

Exactly what version of scipy are you talking about? The one I have from a
recent SVN checkout works fine. It was modified to its current form on
2007-08-28. It might also be that this code relies on behavior of recent
releases of PIL. I am using PIL 1.1.6b2. What are you using?

-- 
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco


More information about the SciPy-user mailing list