There is a problem if you want to update images using product_update. Instead of replacing the existing images, it appends the new image array to the existing array.
That itself is a problem when you need to change all images because our images is getting a new path.
Another problem (or perhaps a question). I can’t find a way to delete/remove images from a product. I have tried setting images to null and an empty array. Null creates an error and the empty array has no effect - because it appends the array and not replaces, as you would expect.
I will investigate this further, but with your detailed description, I think I have enough information. However, if you happen to have request IDs or at least involved SKUs, that would be great!
Contrary to what happens with tags, sending an empty array does not clear the array. I will create a feature request for this case.
When I add an image to a position that already has an image, I get 2 images in the same position instead of the second one replacing the first or pushing it a position. I don’t have an SKU from your account to ensure this is the same thing you are experiencing. If you can confirm or share an SKU, that would be great. I will treat this as a Bug and send it to our engineering team.
Non-empty array not replacing the “existing” array. This is expected but brings us back to 1 and 2.
Please let me know if I left something out or if you have further questions.
I can see that I didn’t reply on this issue. It would be nice to both be able to replace an image on a position and set images to an empty array or null, in order to remove all images from a product.
I’ve bumped both issues and am looking forward to updating you shortly. To recap the first issue is the bug where two images can share the same position. The second being the feedback regarding clearing or removing images.
Please let me know if you have any questions or concerns.