marijnkampf / Random-Photo-Screensaver

Source of Random Photo Screensaver
http://www.abscreensavers.com/random-photo-screensaver/open-source
Other
44 stars 14 forks source link

exclude portrait format pictures from cover mode #120

Open sebbl5 opened 5 years ago

sebbl5 commented 5 years ago

Hi, when choosing fit images to "cover" I would like to have the option to do this only for landscape images. portrait images should be shown in contain mode.

Additionally it would be great to have a hotkey which triggers between cover and contain within the slideshow.

Could you give a hint where in the sourcecode this has to be changed. It was difficult for me to find.

marijnkampf commented 5 years ago

Hi,

The final displaying is done in monitor.html. You might be able to customise /data/monitor.html look for the function showImage(source, displayPath, settings) in /data/js/monitor.js.

Marijn.

marijnkampf commented 5 years ago

PS. if you want to make changes to monitor.js add a file _monitor.js as this will be included automatically and not overwritten when you install the next update of RPS.