Image upload error while publishing a product

Hi,

I am using Shopify REST API to upload image to a newly published product, using the endpoint

//images.json POST method. But image is not getting uploaded. Below is the payload I’m passing and the response from the API. API version is 2021-04.

{‘image’: {‘src’: ‘https://p4mc-staging.s3.amazonaws.com/products/large/415492_large_1.PNG?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAUXCMJPDUQ56WA4RS%2F20220129%2Fus-west-1%2Fs3%2Faws4_request&X-Amz-Date=20220129T092915Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f92d3f7e1bfc37f408739cdcdafc873ed295edf5e73f10c22db72a1a510e9882’, ‘variant_ids’: [41301285404845]}}> > {‘errors’: {‘image’: [‘Could not download image: [“/products/large/415492_large_1.PNG is not a valid image file type.”]’]}}

Thanks in advance.

I made the bucket policy to be publicly accessible for getobject method. The content is publicly accessible. The payload json and its response is given below:

{‘image’: {‘src’: ‘https://p4mc-staging.s3.amazonaws.com/products/large/415493_medium_1.PNG’, ‘variant_ids’: [41302021898413]}}> marketplaces.shopify INFO {‘errors’: {‘image’: [‘Could not download image: [“/products/large/415493_medium_1.PNG is not a valid image file type.”]’]}}

Thanks

Tried uploading the image using S3 image url,

https://p4mc-staging.s3.amazonaws.com/products/large/415493_thumbnail_1.PNG

Its showing :

Image: Media could not be processed because the image is an unsupported file type.

Screenshot is attached.