Skip to content

Image encoding always converts to JPEG #5

@vikhyat

Description

@vikhyat

Both cloud_vl.py and finetune.py convert all PIL images to JPEG (quality 95) before base64 encoding. This lossy conversion is applied unconditionally, even for PNGs with transparency or images that are already in a suitable format.

Should preserve the original format when possible, or at minimum support PNG pass-through.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions