HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
238 stars 92 forks source link

Is there a way to get a on load event from image src? #136

Open DanielMaceira opened 2 years ago

DanielMaceira commented 2 years ago

Hi!

I need to intercept the image loaded from src attribute. Is there a way to use onload event?

I want to know if the image was successfull loaded or get exif data from images, for example.

Thank you!

Heatmanofurioso commented 2 years ago

It seems you can use the AvatarService to check if a source was successfully loaded.

Apart from that, there seems to be no way implemented of intercepting the event.