Is there a way to identify media of type MediaImage, across shops?
Scenario: we would like to synchronize images between two or more shops owned by the same merchant.
For this question, let’s assume that the merchant:
- creates a product with images on shopA,
- exports the product as a .csv from shopA,
- imports the .csv into shopB.
Both shops now have the same (well, not quite, but that is another story) product.
Even in this contained scenario, we have so far been unable to reliably identify MediaImages:
- The file name can change,
- both the file size, and the hash of the file can change,
- the originalSource for shopA and shopB is different.
So, is there any method by which we can identify which image is which?
Note: because Shopify changes the images upon being uploaded, repeatedly deleting and creating images when a change is detected would result in an ever decreasing quality, at least for the most popular image format for product photos, namely jpeg.