title: How to feed multiple images into Keras feature extraction?
body: <p>Here is the code the Keras documentation page:</p>
  
  <pre><code>from keras.applications.vgg16 import VGG16
  from keras.preprocessing import image
  from keras.applications.vgg16 import preprocess_input
  import numpy as np
  
  model = VGG16(weights='imagenet', include_top=False)
  
  img_path = 'elephant.jpg'
  img = image.load_img(img_path, target_size=(224, 224))
  x = image.img_to_array(img)
  x = np.expand_dims(x, axis=0)
  x = preprocess_input(x)
  
  features = model.predict(x)
  </code></pre>
  
  <p>Here a single image is being fed.</p>
  
  <p>I have extracted a few (12) images into a list and converted that list into a numpy array. I would like to feed that list of images to the Keras feature extractor.</p>
  
  <p>In other words I want to feed multiple images to it. How can I go about doing this?</p>