I want to add a watermark only to products that have a specific product attribute equal to a specific value. I have a watermark and a product attribute set up in Magento so far.
I can’t find the code that would enable me to make this change (the closest I can find is the setWatermark function in vendor/magento/module-catalog/Model/Product/Image.php)