Hello,
I will take a look at this.
@nosilver4u, the actions sirsc_attachment_images_processed
and sirsc_image_processed
are triggered for different purposes, and in different contexts. The sirsc_attachment_images_processed
is triggered when all the image sizes have been changed/updated, but sirsc_image_processed
is triggered when a specific image size has been changed (the one that the user is selecting).
I am not sure that it would be correct to trigger the “all sizes changes” on each “single image size change”, which is the case at line 2920 you mentioned.
Maybe I do not understand completely why you would need the “all sizes changed” action triggered at that specific point. With what I understand currently, I think that perhaps it would help if you hook into the sirsc_image_processed
action for the extra computation your code would perform, and if you need the metadata to be passed to this hook, I can add it there too, or even create another hook for you to work with for that specific piece of execution.
Let me know if this makes sense.
Regards,
Iulia
-
This reply was modified 4 years, 11 months ago by Iulia Cazan.