Skip to content

Image File

Image File reads an image you upload to the flow or pick from the ones you have already uploaded. It returns the image ready for a model that can see images to analyse it, or the file itself, to pass it on to another component.

It supports jpg, jpeg, png and bmp images.

When to use it

  • Have a model describe a product photo for your online shop.
  • Read the details of a photographed receipt or delivery note.
  • Pass an image to another component that works with files.

Configuration

FieldWhat it does
Upload file or select image (required)The image you want to read. You can upload a new one or pick one you have already uploaded.

Advanced options

FieldWhat it does
Silent ErrorsIf the image can’t be read, the flow carries on without it instead of stopping.

Output

  • Data: the image encoded as text, ready for a model to read, along with its location.
  • Files: the image as it is, to pass it to components that work with files.

Example

An online shop wants to generate a product description from its photo:

  1. Add Image File and upload the product photo.
  2. Connect Files to a component that describes images.
  3. Pass the description to an agent that writes the text of the product page.

Good practices

  • Use sharp, well-lit images: the model extracts the information better.
  • If the image is in another format, convert it to jpg or png first.
  • File: reads text documents, PDFs, Word documents and spreadsheets.
  • Describe Image: describes the content of an image.