r69550 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69549‎ | r69550 | r69551 >
Date:14:35, 19 July 2010
Author:daniel
Status:ok (Comments)
Tags:
Comment:
make image page respect different sizes of individual frames, as suggested by Markus Glaser.
Modified paths:
  • /trunk/phase3/includes/ImagePage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/ImagePage.php
@@ -328,9 +328,9 @@
329329 } else {
330330 $params = array( 'page' => $page );
331331 }
332 - $width_orig = $this->displayImg->getWidth();
 332+ $width_orig = $this->displayImg->getWidth( $page );
333333 $width = $width_orig;
334 - $height_orig = $this->displayImg->getHeight();
 334+ $height_orig = $this->displayImg->getHeight( $page );
335335 $height = $height_orig;
336336 $mime = $this->displayImg->getMimeType();
337337 $showLink = false;

Comments

#Comment by Duesentrieb (talk | contribs)   15:45, 30 August 2010

avoid distorted display of multi-page tiffs, etc

Status & tagging log