Read the statement by Michael Teeuw here.
MMM-ImagesPhotos - Show images from a directory
-
Take a look at the Hello-Lucy files. You can adapt what you find there to alex yak voice control. :-)
-
I realize this might not be the fault of the module, but many of my images display with the orientation incorrect on this module. I open them on my Mac, and the orientation is correct. I open them in the built-in image viewer on the raspberry pi, and the orientation is correct.
I’ve tried using exiftool to remove the orientation settings entirely with no success. I also tried using exiftool to change the orientation with no success.
My magic mirror is in portrait mode, so I wonder if that matters, but the built-in viewer has no problems.
-
@twosquirrels So, I suspect (but cannot be certain) that this is your problem. I’ve not found great browser support for EXIF image rotation. There are a variety of command line approaches available, and even some GUI apps.
-
@ninjabreadman exiftran worked wonderfully! I used the “automatic” option and it fixed them all! Thanks!
-
@Galang Hello, no news about no random ? it will be great for my configuration
Thanks -
@chassain-0 ImagesPhotos already does random all the time.
randomPhoto: function() { var photos = this.photos; var index = this.randomIndex(photos); return photos[index]; }, getDom: function() { var self = this; var wrapper = document.createElement("div"); var photoImage = this.randomPhoto();
-
@sdetweil sorry…i would say in order
-
@chassain-0 ah, turn off random
-
yes of course…but not so easy for me…i 'm looking for :)
-
I don’t know if this works but
randomIndex: function(photos) { if (photos.length === 1) { return 0; } var generate = function() { return Math.floor(Math.random() * photos.length); }; var photoIndex = generate(); this.lastPhotoIndex = photoIndex; return photoIndex; },
try to change
return Math.floor(Math.random() * photos.length);
toreturn Math.floor(photos.length);
However it’s Just a guess