KristjanESPERANTO / MagicMirror-3rd-Party-Modules

This project provides an overview of all MagicMirror² modules and puts the modules through a few tests.
https://kristjanesperanto.github.io/MagicMirror-3rd-Party-Modules/
MIT License
18 stars 5 forks source link

Specifying correct image? #23

Closed dathbe closed 7 months ago

dathbe commented 7 months ago

How can developers specify which image will show up as the thumbnail for their module? For example, MMM-MoonPhase has two images, ./images/2019-06-22-example-moons.png and ./images/2023-09-15-example-moons.png. The first was chosen as the thumbnail, but the second is the better representation of the module.

Also MMM-MyScoreboard

KristjanESPERANTO commented 7 months ago

The README describes it like this:

If there are several images in your repository, one image is selected according to the following logic: First search for an image that contains 'screenshot' or 'example' in it's name and if none is found, take the first image that is found.

But does not describe what happens if there are two files with example in the name. Then the first file containing example is taken. As 2019 comes before 2023, the 2019 image is used.

Spontaneously I have the following suggestion. Rename the files as follows:

dathbe commented 7 months ago

I want to make sure the image is only referenced in the one place in the README (I couldn't find a reference to the 2019 file, so I'm wondering if they are referenced elsewhere). Then I'll open a PR on the module's repo.

dathbe commented 7 months ago

I just added a new copy of the image and called it example.png. What's an extra 4kb.