Skip to content

magento 2.4 observer on product image change

I have a grouped with some associated products. When the image on the grouped is updated, I’d like to save the same image on the associated products also.

I tried with the “catalog_product_gallery_upload_image_after” observer: this observer gets trigged on image change but it doesn’t give me any info on the product that has been saved.

I also tried with the more generic “product_save” event (after and before): here I have the product data but I cannot fetch the image change.

Is there a way to trigger my code on the image change in a way that I can intercept the image change with the data of the product that has been saved?

Thanks