Topic on Extension talk:MultimediaViewer

Expand to full screen collapses scaled MMV image back to thumb size (MW REL 1.26)

6
Andreas Plank (talkcontribs)

Hi,

I'm using MMV release of Mediawiki 1.26. It works fine so far except on images if the original file size is not as large as to fill the full screen image. Steps I tested

  1. clicking on a small thumbnail image scales it up via MMV. OK so far.
  2. changing MMV to full screen mode causes the MMV-scaled-image to flip back to the smaller thumb size of its thumb version embedded in the wiki page

I would expect that the image size stays at least that size when switching to full screen mode.

Is there anything I can correct it? Any configuration variables that cover this?

Thank you Regards, Andreas

Tgr (WMF) (talkcontribs)

I can't immediately think of anything that would cause this. Is your wiki public?

Andreas Plank (talkcontribs)
Andreas Plank (talkcontribs)

I also noticed, that on the repository wiki, the image is stored in, it works as expected and does not flip back, it maximizes even the size. Also when using an image from commons it works as expected. But on (child) wikis that read from our image repository, the images do flip to the smaller thumb size. Our media repository is configured via ForeignDBViaLBRepo. Can it have an effect on which url is being loaded? At the moment it is

$wgForeignFileRepos[] = array(
 'class' => 'ForeignDBViaLBRepo',
 'wiki'  => 'openmedia',
 'name'  => 'openmedia',
 'directory' => '/var/www/v-species/o/media',
 'url' =>     'https://species-id.net/o/media',
 'thumbUrl' => 'https://species-id.net/o/media/thumb',
 'thumbScriptUrl' => 'https://species-id.net/o/thumb.php',
 'scriptDirUrl' => 'https://species-id.net/o',
 'hashLevels' => 2,
 'fetchDescription' => true,
);

Any ideas on that?

Tgr (WMF) (talkcontribs)

You have enabled $wgMediaViewerUseThumbnailGuessing (or rather, it was probably still on by default in 1.26) which does not work correctly if you are not using a 404 handler for thumbnails.

Andreas Plank (talkcontribs)

With $wgMediaViewerUseThumbnailGuessing=false; it is working as expected. Thank you :-)

Reply to "Expand to full screen collapses scaled MMV image back to thumb size (MW REL 1.26)"