I am working on a store that is comprised of mostly configurable products. I am importing and adding products from a suppliers API into the magento store. My command is running fine. However, I can't seem to find a way for the simple products to share an image.
For EG, my command will save 'Shirt-Black-Default.jpg' in the catalog folder. I would like the different size variations of Shirt Black to use the same image to save space. However, when I use $product->addImageToMediaGallery()... no matter what it will always create a duplicate of the saved image, even if the parameter is the path of the image already in pub/media/catalog/product.
Is it possible in Magento 2 for multiple products to share the same image?