• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

HEIC and MMM-ImagesPhotos

Scheduled Pinned Locked Moved Solved Troubleshooting
20 Posts 3 Posters 859 Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    rts58
    last edited by Mar 21, 2025, 3:19 PM

    Hi,

    Two questions really. I’ve noticed in MMM-ImagesPhotos that an image will flash off and on before it is replaced with a new image. My config looks like:

    {
    	module: "MMM-ImagesPhotos",
    	position: "fullscreen_below",
    	config: {
    		opacity: 0.9,
    		animationSpeed: 500, // was 500
    		updateInterval: 120000,
    		backgroundColor: 'rgba(0,0,0,.3)',  // not used if fill is true
    		fill: false,   // fill around image with blurred copy of image
    		blur: 10,   // only used if fill is true
    		sequential: false  // process the image list randomly
    	}
    },
    

    Any idea what would cause the picture to flash black then return and then transition to the new photo?

    The second question: I’ve noticed that HEIC images are skipped and not shown at all. I’m still running Buster and although I can see an HEIC image with image viewer I’m not able to with Chromium. Is there a way to see HEIC images with MMM-ImagesPhotos?

    Thanks for any help!

    S 1 Reply Last reply Mar 21, 2025, 3:32 PM Reply Quote 0
    • S Away
      sdetweil @rts58
      last edited by sdetweil Mar 21, 2025, 3:44 PM Mar 21, 2025, 3:32 PM

      @rts58 said in HEIC and MMM-ImagesPhotos:

      animationSpeed: 500,

      have you tried setting this to 0?

      HEIC? the module looks for
      const enabledTypes = [“image/jpeg”, “image/png”, “image/gif”];

      what is a filetype for HEIC?

      you can edit that array and add the the for heic

       const enabledTypes = ["image/jpeg", "image/png", "image/gif", "image/heic"];
      

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      R R 2 Replies Last reply Mar 21, 2025, 5:34 PM Reply Quote 1
      • R Offline
        rkorell @sdetweil
        last edited by rkorell Mar 21, 2025, 5:35 PM Mar 21, 2025, 5:34 PM

        @sdetweil HEIC is the Apple iOS version of HEIF (=High Efficiency Image Format) …

        1 Reply Last reply Reply Quote 0
        • R Offline
          rts58 @sdetweil
          last edited by Mar 21, 2025, 5:34 PM

          @sdetweil

          I thought I had tried setting it to 0, but apparently I hadn’t. Now that I have made that change, it is working fine.

          The filetype for HEIC is supposed to “image/heic”. I added that to the enabledTypes array in node_helper.js and it now it is also working!

          Awesome, as always, thank you Sam!

          S 1 Reply Last reply Mar 21, 2025, 5:54 PM Reply Quote 1
          • R rts58 has marked this topic as solved on Mar 21, 2025, 5:35 PM
          • S Away
            sdetweil @rts58
            last edited by sdetweil Mar 21, 2025, 5:55 PM Mar 21, 2025, 5:54 PM

            @rts58 awesome, i’ll submit a pr to update the module

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Mar 29, 2025, 8:14 PM Reply Quote 1
            • R Offline
              rts58 @sdetweil
              last edited by Mar 29, 2025, 8:14 PM

              @sdetweil I am still have trouble with some of the HEIC files.

              If the module runs across an unsupported HEIC (or corrupted jpg) file it will just stop and continue showing the last image.

              I couldn’t find any log or error for files that won’t open. I’ve compared the files it can and can’t open and don’t see any difference in the file details or exif data. Is there a way to have it just skip the unsupported file?

              The module does get locked up, it will not continue with a new image even after the update interval has passed. Thanks for your help.

              S 1 Reply Last reply Mar 29, 2025, 8:18 PM Reply Quote 0
              • S Away
                sdetweil @rts58
                last edited by Mar 29, 2025, 8:18 PM

                @rts58 can you look in the developers window console tab

                ctrl-shift-i

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Mar 29, 2025, 9:06 PM Reply Quote 0
                • R Offline
                  rts58 @sdetweil
                  last edited by Mar 29, 2025, 9:06 PM

                  @sdetweil yes I’ve been looking at it. If it works I’ll get a message that the image loaded and link, image setting size … , and setting top. If it doesn’t it won’t show anything.

                  S 1 Reply Last reply Mar 29, 2025, 9:08 PM Reply Quote 0
                  • S Away
                    sdetweil @rts58
                    last edited by Mar 29, 2025, 9:08 PM

                    @rts58 ok, i’ll look at error handlers

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R S 2 Replies Last reply Mar 29, 2025, 9:12 PM Reply Quote 0
                    • R Offline
                      rts58 @sdetweil
                      last edited by Mar 29, 2025, 9:12 PM

                      @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.

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 1 / 2
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy