subzeroid / instagrapi

🔥 The fastest and powerful Python library for Instagram Private API 2024
https://hikerapi.com/p/bkXQlaVe
MIT License
4.38k stars 686 forks source link

[BUG] Error while uploading 32bit image #1154

Closed OmerMohideen closed 1 year ago

OmerMohideen commented 1 year ago

error : raise PhotoNotUpload(response.text, response=response, **last_json) instagrapi.exceptions.PhotoNotUpload: {"debug_info":{"retriable":false,"type":"ProcessingFailedError","message":"Request processing failed"}}

when trying to upload an 32bit image

adw0rd commented 1 year ago

https://github.com/adw0rd/instagrapi/issues?q=PhotoNotUpload

OmerMohideen commented 1 year ago

https://github.com/adw0rd/instagrapi/issues?q=PhotoNotUpload

Photo Upload failed with the following response: <Response [400]>

The image i try to upload using instagrapi is 1080x1080 32bit depth jpg format i tried uploading directly to instagram and it work however it throws the error with instagrapi after messing around i finally tried reducing the bit depth to 24 which messes the images alpha channel but it got uploaded so ig you can't post 32bit images using instagrapi

adw0rd commented 1 year ago

@OmerMohideen you need to upload a photo in the correct format, when you upload a photo through the instagram app, it converts this photo to the format they need

to find out in what format you need to upload - download any photo from instagram and see what format it is