jpeg image being read differently skimage.io.imread

Hi, I have two servers on which I have installed skimage. When I do an skimage.io.imread on these two machines with the same image file, I noticed a difference in the shape of the returned image array: Machine 1: image_name = /path/to/JPEG img = skimage.io.imread(image_name)
img.shape
(3000, 4000, 3) Machine 2: img = skimage.io.imread(image_name)
img.shape
(2, ) Both machines have skimage version '0.11.3'. I believe that both systems have Pillow installed. I do not know the version of Pillow. I did change the plug-in to matplotlib on Machine 2 and saw that the image was being read correctly. However, I'm curious to know the reason for this difference and what I can do to fix my machine #2 Furthermore, how do I find the version of Pillow installed on my system? A google search didn't come up with anything that was helpful (i.e, copy-pastable solution) :) Thanks, -Vimal

Hi Vimal Can you please try skimage.io.imread(image_name, plugin='matplotlib') ? Thanks! Stéfan On 3 March 2016 at 12:13, Vimal Thilak <vimalthilak@gmail.com> wrote:
Hi,
I have two servers on which I have installed skimage. When I do an skimage.io.imread on these two machines with the same image file, I noticed a difference in the shape of the returned image array:
Machine 1:
image_name = /path/to/JPEG
img = skimage.io.imread(image_name)
img.shape
(3000, 4000, 3)
Machine 2:
img = skimage.io.imread(image_name)
img.shape
(2, )
Both machines have skimage version '0.11.3'. I believe that both systems have Pillow installed. I do not know the version of Pillow. I did change the plug-in to matplotlib on Machine 2 and saw that the image was being read correctly. However, I'm curious to know the reason for this difference and what I can do to fix my machine #2
Furthermore, how do I find the version of Pillow installed on my system? A google search didn't come up with anything that was helpful (i.e, copy-pastable solution) :)
Thanks,
-Vimal
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. To post to this group, send email to scikit-image@googlegroups.com. To view this discussion on the web, visit https://groups.google.com/d/msgid/scikit-image/ef640963-7d67-4e00-9c2c-d7168.... For more options, visit https://groups.google.com/d/optout.
participants (2)
-
Stéfan van der Walt
-
Vimal Thilak