Address boundary error when trying to use Image.putdata(array) from PIL
Tristan Trouwen
tristan.trouwen at gmail.com
Sat Sep 24 06:59:35 EDT 2016
Got a signal boundary error.
Steps to reproduce:
open python console
Python 2.7.9 (default, Jun 29 2016, 13:08:31)
[GCC 4.9.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PIL import Image
>>> im = Image.open('HKJL.jpg')
>>> import numpy as np
>>> arr = np.array(im)
>>> arr[arr < 10] = 0
>>> im.putdata(arr)
fish: “python” terminated by signal SIGSEGV (Address boundary error)
The image I used: http://i.imgur.com/hnuzhFj.jpg
More information about the Python-list
mailing list