Skip to content

PNG files uploaded from Google AI Studio are corrupted when synced to GitHub #35

Description

@damiencocornille-source

Description of the bug:

When using Google AI Studio and uploading PNG image files directly from the interface, the files appear to upload successfully and are synced to the connected GitHub repository.
However, once the synchronization is complete, the PNG files stored in GitHub are corrupted.

The affected PNG files:

Cannot be opened by standard image viewers

Fail to render correctly in browsers

Appear to have invalid or broken binary content

This issue only occurs when the PNG files are uploaded via Google AI Studio. Uploading the same PNG files directly to GitHub (via web UI or git push) works correctly.

Actual vs expected behavior:

Actual behavior

PNG files uploaded from Google AI Studio become corrupted after being synced to GitHub.

The files exist in the repository but are unusable.

Expected behavior

PNG files uploaded from Google AI Studio should remain binary-intact.

The synced PNG files in GitHub should be identical to the original files and open normally.

Any other information you'd like to share?

Additional notes

File type affected: PNG (.png)

Reproducible: Yes (every time)

Upload method: Google AI Studio UI → GitHub sync

GitHub repository receives the file, but content is corrupted

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions