hbz / lobid-organisations

Transformation, web frontend, and API for lobid-organisations
http://lobid.org/organisations
Eclipse Public License 2.0
13 stars 3 forks source link

Improve how images are (hot) linked from Wikimedia Commons #449

Open Phu2 opened 1 year ago

Phu2 commented 1 year ago

Currently, a random image from Wikimedia Commons is displayed on the home page http://lobid.org/organisations. The <img> element looks like this:

<img id="index-image" src="https://lobid.org/imagesproxy?url=https://commons.wikimedia.org/wiki/Special:FilePath/Ottobrunn%20Otto%20Koenig%20von%20Griechenland-Museum%20innen.jpg" title="Organisation des Moments, aktualisieren für weitere" alt="Otto-König-von-Griechenland-Museum, Ottobrunn">

Thus the original file of the image is requested resulting in long loading time depending on the size of the file. In the example above the requested image is about 10 MB. The value of the title attribute seems to be static and not very useful.

I would suggest