Read the statement by Michael Teeuw here.
MMM-ImagesPhotos Help Resizing photos
-
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!
-
sequential: false <====when there is another line after, gotta have a trailing comma, saying more follows
-
@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/falseno quotes
otherwise requires quotes.
500px, some street, hello -
@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!
-
sequential: false <====when there is another line after, gotta have a trailing comma, saying more follows
-
@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.
-
@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
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