claude-code - 💡(How to fix) Fix [BUG] "Image uploads convert PNG to JPEG, destroying alpha channel transparency" [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46464Fetched 2026-04-11 06:19:36
View on GitHub
Comments
0
Participants
1
Timeline
4
Reactions
0
Author
Participants
Timeline (top)
labeled ×4

Error Message

Error Messages/Logs

RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

All is said in title Absolute boring bug when you code transparency to BAse64 or whatever

What Should Happen?

RGBA must stay RGBA, and not become RGB

Error Messages/Logs

Steps to Reproduce

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

No response

Claude Code Version

Opus 4.6 and @

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

No response

extent analysis

TL;DR

  • Verify the color mode settings in Claude Code to ensure RGBA is preserved when converting to Base64.

Guidance

  • Check the documentation for Claude Code Opus 4.6 to see if there are any known issues or configuration options related to color mode preservation.
  • Test the conversion process with a simple RGBA image to isolate the issue and confirm the expected behavior.
  • If possible, try reverting to a previous version of Claude Code that worked as expected to compare the behavior.
  • Review the Anthropic API documentation to ensure that the API supports RGBA color mode and is not causing the conversion to RGB.

Notes

  • The lack of specific error messages or logs makes it difficult to provide a more detailed solution.
  • The fact that this worked in a previous version suggests a potential regression, but without more information, it's hard to pinpoint the cause.

Recommendation

  • Apply workaround: Try configuring the color mode settings in Claude Code to preserve RGBA, or test alternative conversion methods to see if they produce the expected results. This is recommended because the issue seems to be related to the conversion process, and tweaking the settings or trying alternative methods may help resolve the issue.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING