The image format of the interface message is incorrect #8226

Closed
opened 2026-02-21 18:24:34 -05:00 by yindo · 3 comments
Owner

Originally created by @zhuojiuya on GitHub (Feb 13, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

When the sending information interface is called, the image resource uses the local resource, and the following error is always reported
Image

Image

✔️ Expected Behavior

No response

Actual Behavior

No response

Originally created by @zhuojiuya on GitHub (Feb 13, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce When the sending information interface is called, the image resource uses the local resource, and the following error is always reported ![Image](https://github.com/user-attachments/assets/b601d06e-594e-42f6-bfe7-2eda5c243276) ![Image](https://github.com/user-attachments/assets/d6cf1e4c-be54-4171-9046-5c606e61b706) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior _No response_
yindo added the 🐞 bug label 2026-02-21 18:24:34 -05:00
yindo closed this issue 2026-02-21 18:24:34 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 13, 2025):

The error you're encountering seems to be related to an unsupported image format when using a local resource in a self-hosted Docker environment. Dify supports specific image formats: JPG, JPEG, PNG, GIF, WEBP, and SVG, including their uppercase variants [1][2].

Ensure that the image you're trying to process is in one of these supported formats. If the image format is correct and you're still facing issues, check the configuration settings, particularly the MULTIMODAL_SEND_IMAGE_FORMAT setting, which should be set to either base64 or url depending on your setup [3]. If using url, make sure FILES_URL is configured as an externally accessible address.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other | Bug Report

@dosubot[bot] commented on GitHub (Feb 13, 2025): <!-- Answer --> The error you're encountering seems to be related to an unsupported image format when using a local resource in a self-hosted Docker environment. Dify supports specific image formats: JPG, JPEG, PNG, GIF, WEBP, and SVG, including their uppercase variants <sup>[[1]](https://github.com/langgenius/dify/issues/11652)</sup><sup>[[2]](https://github.com/langgenius/dify/blob/main/api/constants/__init__.py)</sup>. Ensure that the image you're trying to process is in one of these supported formats. If the image format is correct and you're still facing issues, check the configuration settings, particularly the `MULTIMODAL_SEND_IMAGE_FORMAT` setting, which should be set to either `base64` or `url` depending on your setup <sup>[[3]](https://github.com/langgenius/dify-docs/blob/main/en/getting-started/install-self-hosted/environments.md)</sup>. If using `url`, make sure `FILES_URL` is configured as an externally accessible address. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=other) | [Bug Report](https://app.dosu.dev/response-feedback/3c6020ce-3c7c-42b4-82a2-4414e6449b5a?feedback_type=bug_report)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 13, 2025):

If you want the LLM to read the image, you will need vision configuration declared in the yaml file. And it will display an eye besides that.

Image

Without this eye icon, you can not read the image.
Image

@crazywoola commented on GitHub (Feb 13, 2025): If you want the LLM to read the image, you will need `vision` configuration declared in the yaml file. And it will display an eye besides that. <img width="252" alt="Image" src="https://github.com/user-attachments/assets/8bf40a4e-c737-4f70-9b5f-123dcad68e55" /> Without this `eye` icon, you can not read the image. <img width="225" alt="Image" src="https://github.com/user-attachments/assets/3b281b69-7425-49cf-aebf-d1a50c911935" />
Author
Owner

@zhuojiuya commented on GitHub (Feb 13, 2025):

If you want the LLM to read the image, you will need vision configuration declared in the yaml file. And it will display an eye besides that.

Image Without this `eye` icon, you can not read the image. Image

That doesn't seem to be the reason
Image

Image

@zhuojiuya commented on GitHub (Feb 13, 2025): > If you want the LLM to read the image, you will need `vision` configuration declared in the yaml file. And it will display an eye besides that. > > <img alt="Image" width="252" src="https://private-user-images.githubusercontent.com/100913391/412758859-8bf40a4e-c737-4f70-9b5f-123dcad68e55.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzA3MjksIm5iZiI6MTczOTQzMDQyOSwicGF0aCI6Ii8xMDA5MTMzOTEvNDEyNzU4ODU5LThiZjQwYTRlLWM3MzctNGY3MC05YjVmLTEyM2RjYWQ2OGU1NS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNzA3MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02NzQxN2YzNDY0Yjc2YWEwNGYwYTQ0OTVhY2ZiZmQ4NTI0MmYyNWE0Y2Q1MjhkZTZkN2EzM2IzOWI0NzM3MzkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9._OI-YUDHRy9aCyvpNtLi0m_1VtBk61lcInHTVXW4XS0"> > Without this `eye` icon, you can not read the image. <img alt="Image" width="225" src="https://private-user-images.githubusercontent.com/100913391/412759139-3b281b69-7425-49cf-aebf-d1a50c911935.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MzA3MjksIm5iZiI6MTczOTQzMDQyOSwicGF0aCI6Ii8xMDA5MTMzOTEvNDEyNzU5MTM5LTNiMjgxYjY5LTc0MjUtNDljZi1hZWJmLWQxYTUwYzkxMTkzNS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNzA3MDlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT02MTE5ODMzYTQyNGIyZDRjNzY3NzU2MDNiNjQ2OWViYzM1OGExNDdkYmMzYzhlY2I4MGQ1NTVkMGMzNDdhZTVmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.R5saoinaDEHiKTVBUPbYGsylTWEWfjvUd_v9jD5OA9c"> That doesn't seem to be the reason ![Image](https://github.com/user-attachments/assets/a400e803-6986-447d-8985-6bf3118905f9) ![Image](https://github.com/user-attachments/assets/8ac4c515-09be-41fd-b14b-d92285750fae)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8226