Read the statement by Michael Teeuw here.
HEIC and MMM-ImagesPhotos
-
@rts58 ok, i’ll look at error handlers
-
@sdetweil if it helps when I dig into the elements it shows:
<img src="/MMM-ImagesPhotos/photo/module_9_MMM-ImagesPhotos/IMG_3259-Copy.HEIC" style="left: 0px; position: relative; opacity: 0;">So it thinks it is loading the file.
-
-
@sdetweil this is what I did which is creating an uncaught syntax error on the line with the first “{”.
img.onerror(){ this.updateDom() } img.onload = (evt) => { // Get the image of the event const eventImage = evt.currentTarget; Log.log( `image loaded=${eventImage.src} size=${eventImage.width}:${eventImage.height}` -
-
@sdetweil I’m not seeing any errors in the console.
-
@rts58 i did not add error reporting yet, this should keep it
from stalling -
@rts58 the prior code started the timer only after
image was loaded. but we have already waited timeout time
so we can get the next image -
@rts58 just pushed the updated code, git pull in the module folder
logs an error record to the dev window console on load fail, with the url of the failing image -
@sdetweil great, thanks. I’ll let you know how it goes.
-
@sdetweil It’s working great now. No longer freezing on image files that it cannot open. And it is properly reflecting the error with the file name in the console! THANKS!
-
@rts58 awesome!!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login