title: Load a tiff stack in a numpy array with python
body: <p>I am having a little issue with .tif files. I am sure it is only a minor problem that I can´t get around (keep in mind, I am a relatively new programmer).</p>
  
  <p>Basically: I have prepared .tif files that are 64x64xn in size (n up until 1000). The image is only a single file that contains all of this slices. I would like to load the image into a (multidimensional) numpy array. I have tried: </p>
  
  <pre><code>from PIL import Image as pilimage
  
  file_path=(D:\luca\test\test.tif)
  print("The selected stack is a .tif")
  dataset = pilimage(file_path)
  tiffarray = np.array(dataset)
  expim = tiffarray.astype(np.double);
  print(expim.shape)
  </code></pre>
  
  <p>and other things (like tifffile). I only seem to be able to read the first slice of the stack. Is it possible for "expim" to contain all information that is saved in the tiff stack?</p>