{"action":"closed","issue":{"url":"https://api.github.com/repos/IndicoDataSolutions/IndicoIo-python/issues/102","labels_url":"https://api.github.com/repos/IndicoDataSolutions/IndicoIo-python/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/IndicoDataSolutions/IndicoIo-python/issues/102/comments","events_url":"https://api.github.com/repos/IndicoDataSolutions/IndicoIo-python/issues/102/events","html_url":"https://github.com/IndicoDataSolutions/IndicoIo-python/issues/102","id":97780566,"number":102,"title":"Bug with image features batch mode","user":{"login":"lukemetz","id":1248454,"avatar_url":"https://avatars.githubusercontent.com/u/1248454?v=3","gravatar_id":"","url":"https://api.github.com/users/lukemetz","html_url":"https://github.com/lukemetz","followers_url":"https://api.github.com/users/lukemetz/followers","following_url":"https://api.github.com/users/lukemetz/following{/other_user}","gists_url":"https://api.github.com/users/lukemetz/gists{/gist_id}","starred_url":"https://api.github.com/users/lukemetz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukemetz/subscriptions","organizations_url":"https://api.github.com/users/lukemetz/orgs","repos_url":"https://api.github.com/users/lukemetz/repos","events_url":"https://api.github.com/users/lukemetz/events{/privacy}","received_events_url":"https://api.github.com/users/lukemetz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/IndicoDataSolutions/IndicoIo-python/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-07-28T19:14:07Z","updated_at":"2015-07-29T17:01:44Z","closed_at":"2015-07-29T17:01:44Z","body":"I get a crash inside image.py when I use image_features in batch mode on latest build on PiPy. \r\n\r\nStackTrace:\r\n\r\n```\r\n/home/indico/Repos/blog_posts/tsne_cats_vs_dogs.py in <module>()\r\n     26 print \"start\"\r\n---> 27 data = indicoio.image_features(paths)\r\n     28 print \"stop\"\r\n     29 data = np.asarray(data).astype(\"float64\")/255\r\n\r\n/usr/local/lib/python2.7/dist-packages/indicoio/images/features.pyc in image_features(image, cloud, batch, api_key, **kwargs)\r\n     60     :rtype: List containing features\r\n     61     \"\"\"\r\n---> 62     image = image_preprocess(image, batch=batch, size=(64,64))\r\n     63     url_params = {\"batch\": batch, \"api_key\": api_key}\r\n     64     return api_handler(image, cloud=cloud, api=\"imagefeatures\", url_params=url_params, **kwargs)\r\n\r\n/usr/local/lib/python2.7/dist-packages/indicoio/utils/image.pyc in image_preprocess(image, size, batch)\r\n     34             DeprecationWarning\r\n     35         )\r\n---> 36         out_image = process_list_image(image)\r\n     37     elif isinstance(image, Image.Image):\r\n     38         out_image = image\r\n\r\n/usr/local/lib/python2.7/dist-packages/indicoio/utils/image.pyc in process_list_image(_list)\r\n     95     seq_obj = []\r\n     96 \r\n---> 97     out_image = Image.new(\"RGB\", (dimens[0], dimens[1]))\r\n     98     for i in xrange(dimens[0]):\r\n     99         for j in xrange(dimens[1]):\r\n\r\nIndexError: list index out of range\r\n\r\n```"}}