Page MenuHomePhabricator

thumbnails of STL files incorrectly sized in packed gallery mode
Open, Needs TriagePublic

Assigned To
None
Authored By
Jarekt
Jun 3 2022, 1:43 PM
Referenced Files
F35203684: Annotation 2022-06-03 094337a.png
Jun 3 2022, 1:58 PM
F35203680: Annotation 2022-06-03 094337.png
Jun 3 2022, 1:58 PM
F35203651: Annotation 2022-06-03 094337.png
Jun 3 2022, 1:46 PM
Tokens
"Love" token, awarded by Marsupium.

Description

Thumbnails of STL files are incorrectly sized when included in <gallery mode="packed"> or <gallery mode='packed' heights=200> as by default they show up with files sized similarly to jpegs in <gallery mode='packed' heights=1500>

I tested all the modes and observed the issue also in the following modes:

  • packed
  • packed-overlay
  • packed-hover
  • slideshow

While "traditional" and "nolines" modes seem unaffected.

I tested the issue with several STL files on Commons and English Wikipedia and they all had the same issue. I also tried several browsers and the page looks different in each. The issue showed most in Chrome (Version 102.0.5005.63 ), and was less pronounced in Firefox (version 91.10.0esr) or MS Edge (Version 102.0.1245.30 )

Event Timeline

Annotation 2022-06-03 094337.png (682×1 px, 297 KB)

Was produced by the following code:

<gallery mode='packed' heights=200>
File:Msr-agrippina-repaired.stl
File:MSR-Ra168bis-DM (1).jpg
</gallery>

<gallery mode='nolines' heights=200>
File:Msr-agrippina-repaired.stl
File:MSR-Ra168bis-DM (1).jpg
</gallery>

Annotation 2022-06-03 094337.png (935×1 px, 297 KB)

and
Annotation 2022-06-03 094337a.png (1×1 px, 186 KB)

was produced by

<gallery mode='slideshow' heights=200>
File:Msr-agrippina-repaired.stl
File:MSR-Ra168bis-DM (1).jpg
</gallery>

<gallery mode='nolines' heights=200>
File:Msr-agrippina-repaired.stl
File:MSR-Ra168bis-DM (1).jpg
</gallery>

at different page scaling