简体   繁体   中英

BigCommerce serving preview images for product options?

My product has multiple options and each option has an image, but BigCommerce returns a link for the image like this: https://cdn11.bigcommerce.com/s-2zrsm6mrhd/images/stencil/{:size}/attribute_value_images/17384.preview.jpg?t=1618265813

as you can see it's a preview.jpg file which is compressed and has lower quality, even if set the size really high it's still a bit pixelated. How can I get the original quality image? and not the preview one?

Hello Kevin have you tried uploading using the REST API using Postman as the method of calling your images? IE POST https://api.bigcommerce.com/stores/{store_hash}/v3/catalog/products/{product_id}/variants/{variant_id}/image and then running in the body { "image_url": "string" } Calling the Original quality image url in the string. This might avoid the need of any compressed images being called and alleviate your pixilation issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM