chat_gpt_sdk
chat_gpt_sdk copied to clipboard
Uploaded image must be a png and less than 4 mb - ERROR
Can anyone help? I've been stuck on this for days... I even tried converting the path to base64 but nothing work... by the way the file is png, less than 1MB and is a square.
These suggestion didn't help either: https://community.openai.com/t/using-image-url-in-images-edits-request/27247/3
` void variation(File image, String name) async { final request = Variation(image: EditFile(image.path, name)); final response = await openAI.editor.variation(request);
print(response.data?.last?.url); } `
@intellign you try convert to argb png
@redevrx how I do convert to argb png?