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.

    MMM-ImagesPhotos Help Resizing photos

    Scheduled Pinned Locked Moved Solved Troubleshooting
    6 Posts 2 Posters 628 Views 2 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.
    • B Offline
      bebetter14
      last edited by

      I’m very new to this and I’m running into trouble trying to resize my photos using the referenced module. I keep getting a syntax error when trying to enter in the maxWidth and maxHeight. What is the correct format I need to use if I’m trying to have my photos be 500px X 500px. Thank you!

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @bebetter14
        last edited by

        @bebetter14

        sequential: false  <====
        

        when there is another line after, gotta have a trailing comma, saying more follows

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        B 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @bebetter14
          last edited by

          @bebetter14 can you show what you are trying ?

          general rule.

          if the thing to the right of : is
          a number 2, 7.5, 98.3456
          true/false

          no quotes

          otherwise requires quotes.
          500px, some street, hello

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          B 1 Reply Last reply Reply Quote 0
          • B Offline
            bebetter14 @sdetweil
            last edited by sdetweil

            @sdetweil For example;

            Ive used the same example in your Readme however just adding on the width and height.

            {
            	module: "MMM-ImagesPhotos",
            	position: "middle_center",
            	config: {
            		opacity: 0.9,
            		animationSpeed: 500,
            		updateInterval: 5000,
            		backgroundColor: 'grey', 
            		fill: false,  
            		blur: 10,   
            		sequential: false 
                            maxWidth: 500, 
                             maxHeight: 500,
            	}
            },
            

            If I remove the width and height, it works no problem. Thank you very much for helping me out!

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @bebetter14
              last edited by

              @bebetter14

              sequential: false  <====
              

              when there is another line after, gotta have a trailing comma, saying more follows

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              B 1 Reply Last reply Reply Quote 0
              • B Offline
                bebetter14 @sdetweil
                last edited by

                @sdetweil That was it! Thank you so much. This project has really gotten me interested in learning coding! Looking forward to posting my mirror once it’s finished.

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  sdetweil @bebetter14
                  last edited by

                  @bebetter14 awesome

                  the error you saw was

                  unexpected token whatever

                  that is the first clue to look for a missing comma on the line before

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • 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