You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to set image dimensions as a custom property by setting a handler for the MediaHasBeenAdded event.
The media model gets updated but then it seems to be overwritten by adjustments made from conversions, but if I listen and act upon the ConversionHasBeenCompleted event - it doesn't guarantee that im not going to hit the same type of race condition if I have multiple conversions.
Any ideas how I can get around this without calculating the image dimensions at a later date?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm trying to set image dimensions as a custom property by setting a handler for the MediaHasBeenAdded event.
The media model gets updated but then it seems to be overwritten by adjustments made from conversions, but if I listen and act upon the ConversionHasBeenCompleted event - it doesn't guarantee that im not going to hit the same type of race condition if I have multiple conversions.
Any ideas how I can get around this without calculating the image dimensions at a later date?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions