r107310 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r107309‎ | r107310 | r107311 >
Date:00:04, 26 December 2011
Author:mah
Status:ok
Tags:
Comment:
moar w/s
Modified paths:
  • /branches/REL1_18/phase3/includes/media/Bitmap.php (modified) (history)

Diff [purge]

Index: branches/REL1_18/phase3/includes/media/Bitmap.php
@@ -42,7 +42,7 @@
4343 return true;
4444 }
4545 }
46 -
 46+
4747 # Don't thumbnail an image so big that it will fill hard drives and send servers into swap
4848 # JPEG has the handy property of allowing thumbnailing without full decompression, so we make
4949 # an exception for it.
@@ -55,10 +55,10 @@
5656
5757 return true;
5858 }
59 -
 59+
6060 /**
6161 * Extracts the width/height if the image will be scaled before rotating
62 - *
 62+ *
6363 * This will match the physical size/aspect ratio of the original image
6464 * prior to application of the rotation -- so for a portrait image that's
6565 * stored as raw landscape with 90-degress rotation, the resulting size
@@ -305,7 +305,7 @@
306306 if ( strval( $wgImageMagickTempDir ) !== '' ) {
307307 $env['MAGICK_TMPDIR'] = $wgImageMagickTempDir;
308308 }
309 -
 309+
310310 $rotation = $this->getRotation( $image );
311311 list( $width, $height ) = $this->extractPreRotationDimensions( $params, $rotation );
312312

Status & tagging log