# Selection of multiple images (Workflow)

**URL:** <https://discuss.roboflow.com/t/selection-of-multiple-images-workflow/8841>\
**Category:** 🤝  Community Help\
**Created:** [March 1, 2025, 10:28pm UTC](https://discuss.roboflow.com/t/selection-of-multiple-images-workflow/8841 "2025-03-01T22:28:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Silvia\_Ivanova](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/silvia_ivanova/32/6771_2.png) [@Silvia\_Ivanova](https://discuss.roboflow.com/u/Silvia_Ivanova)\
**Post date:** [March 1, 2025, 10:28pm UTC](https://discuss.roboflow.com/t/selection-of-multiple-images-workflow/8841/1 "2025-03-01T22:28:25Z")

</div>

Hi, I created a workflow with an “Inputs” block where I can upload an image. Is it possible to select multiple images? Currently, I can only upload one .jpg image!

---

<div class="post-metadata">

**Author:** ![Grzegorz](https://yyz1.discourse-cdn.com/flex029/user_avatar/discuss.roboflow.com/grzegorz/32/2877_2.png) [@Grzegorz](https://discuss.roboflow.com/u/Grzegorz)\
**Post date:** [March 3, 2025, 12:40pm UTC](https://discuss.roboflow.com/t/selection-of-multiple-images-workflow/8841/2 "2025-03-03T12:40:10Z")

</div>

Hi @Silvia_Ivanova ,

Many thanks for posting this question!

When you mention uploading `.jpg` image I assume you mean our workflows builder, which you can use to build and test workflows and currently we do not support testing with multiple `.jpg` images.

In order to test multiple images input you can write a script and run it, please have a look at below very simple example:

```python3
import cv2 as cv

from inference.core.workflows.execution_engine.core import ExecutionEngine

WORKFLOW_DEFINITION = {
  "version": "1.0",
  "inputs": [
    {
      "type": "InferenceImage",
      "name": "image"
    }
  ],
  "steps": [
  ],
  "outputs": [
    {
      "type": "JsonField",
      "name": "my_example_output",
      "coordinates_system": "own",
      "selector": "$inputs.image"
    }
  ]
}

img_path = "/path/to/image.jpg"

execution_engine = ExecutionEngine.init(
    workflow_definition=WORKFLOW_DEFINITION,
)

result = execution_engine.run(
    runtime_parameters={
        "image": [
          {"type": "file", "value": img_path},
          {"type": "file", "value": img_path},
          {"type": "file", "value": img_path},
        ],
    }
)

cv.imshow("0", result[0]["my_example_output"].numpy_image)
cv.imshow("1", result[1]["my_example_output"].numpy_image)
cv.imshow("2", result[2]["my_example_output"].numpy_image)
cv.waitKey(0)

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex029/uploads/roboflow1/original/1X/bb6edbfa56d0cf2ee603f061e9e09103502cc8cc.png) [@system](https://discuss.roboflow.com/u/system)\
**Post date:** [March 24, 2025, 12:40pm UTC](https://discuss.roboflow.com/t/selection-of-multiple-images-workflow/8841/3 "2025-03-24T12:40:50Z")

</div>

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.
