NextChat icon indicating copy to clipboard operation
NextChat copied to clipboard

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

Open maxduke opened this issue 1 year ago • 8 comments

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

  • [ ] Docker
  • [X] Vercel
  • [ ] Server

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

maxduke avatar May 06 '24 14:05 maxduke

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

Issues-translate-bot avatar May 06 '24 14:05 Issues-translate-bot

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

Dean-YZG avatar May 13 '24 07:05 Dean-YZG

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.

Issues-translate-bot avatar May 13 '24 07:05 Issues-translate-bot

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

Dean-YZG avatar May 13 '24 10:05 Dean-YZG

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

Issues-translate-bot avatar May 13 '24 10:05 Issues-translate-bot

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

maxduke avatar May 26 '24 07:05 maxduke

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.

Issues-translate-bot avatar May 26 '24 07:05 Issues-translate-bot