Reputation: 565
I'm using the Google Books API to populate a WooCommerce database but I can't upload the images because I get this error:
{
"code": "woocommerce_product_invalid_image_id",
"message": "#593 is an invalid image ID.",
"data": {
"status": 400
}
}
WebP image link: http://books.google.com/books/content?id=lYpxPQAACAAJ&printsec=frontcover&img=1&zoom=1&source=gbs_api
I have found a solution that uses another API and converts the WebP image to a JPG image so that the API can upload it without problems, but for other reasons I don't want to use it.
Given the fact that with some plugin WooCommerce can easily handle WebP images, my question is:
Is there any way to not require uploading the image and instead just link to the WebP image?
Upvotes: 1
Views: 855