ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
73k stars 57.99k forks source link

[Bug] ios使用gpt4-turbo无法上传相册中的照片 #4627

Open maxduke opened 2 months ago

maxduke commented 2 months ago

Bug Description

ios使用gpt4-turbo模型时,选择相册中手机拍摄的照片后,编辑框中的图片预览显示为空。选择截图或者文件中jpg格式图片可以正常。怀疑可能是图片格式位HEIC的原因。

Steps to Reproduce

  1. ios中打开PWA的nextchat
  2. 新建gpt4-turbo模型对话
  3. 选择相册中手机拍摄的照片后
  4. 编辑框中的图片预览显示为空

Expected Behavior

能正常显示和发送iOS中从相册上传的拍摄的照片,格式可能为HECI。

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

iPhone 15 Pro

Smartphone OS

iOS 17.4

Smartphone Browser

PWA

Smartphone Browser Version

No response

Additional Logs

No response

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Title: [Bug] ios cannot upload photos in the album using gpt4-turbo

Dean-YZG commented 2 months ago

感谢反馈,目前看,应该是和图片格式heic有关,代码底层使用canvas辅助压缩图片,但是,目前canvas还不支持 heic 格式

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


Thanks for the feedback. At present, it seems that it is related to the image format heic. The bottom layer of the code uses canvas to assist in compressing images. However, canvas does not currently support the heic format.

Dean-YZG commented 2 months ago

https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/4671 在这个pr中,识别了heic,并转化为 jpeg进行上传

Issues-translate-bot commented 2 months ago

Bot detected the issue body's language is not English, translate it automatically.


https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web/pull/4671 In this pr, heic is identified and converted into jpeg for uploading

maxduke commented 1 month ago

你好,我看PR已经merge了,但最新代码好像还是会报一样的错。

Issues-translate-bot commented 1 month ago

Bot detected the issue body's language is not English, translate it automatically.


Hello, I see that the PR has been merged, but the latest code still seems to give the same error.