分类: AI 工具排错

RGBA image support in `gr.ImageEditor()`

RGBA image support in `gr.ImageEditor()`

当你在 Gradio 中使用 gr.ImageEditor() 处理带透明通道的 PNG(RGBA)时,组件会丢弃 alpha 通道并强制转为 RGB,导致输出图片透明背景变黑或变白。这是组件历史上的已知限制,并非配置错误,需要升级到包含修复的 Gradio 版本。