Index: trunk/extensions/SmoothGallery/SmoothGalleryParser.php |
— | — | @@ -205,7 +205,8 @@ |
206 | 206 | |
207 | 207 | // Create a thumbnail the same size as our gallery so that |
208 | 208 | // full images fit correctly |
209 | | - $full_thumb_obj = $img_obj->getThumbnail( $this->argumentArray["width"], $this->argumentArray["height"] ); |
| 209 | + |
| 210 | + $full_thumb_obj = $img_obj->transform( array( 'width' => $this->argumentArray["width"], 'height' => $this->argumentArray["height"] ), 0 ); |
210 | 211 | if ( !is_null( $full_thumb_obj ) ) { |
211 | 212 | $full_thumb = $full_thumb_obj->getUrl(); |
212 | 213 | } else { |
— | — | @@ -225,7 +226,7 @@ |
226 | 227 | // We are going to show a carousel to the user; we need |
227 | 228 | // to make icon thumbnails |
228 | 229 | // $thumb_obj = $img_obj->getThumbnail( 120, 120 ); //would be nice to reuse images already loaded... |
229 | | - $thumb_obj = $img_obj->getThumbnail( $wgSmoothGalleryThumbWidth, $wgSmoothGalleryThumbHeight ); |
| 230 | + $thumb_obj = $img_obj->transform( array( 'width' => $wgSmoothGalleryThumbWidth, 'height' => $wgSmoothGalleryThumbHeight ), 0 ); |
230 | 231 | if ( $thumb_obj ) { |
231 | 232 | $icon_thumb = $thumb_obj->getUrl(); |
232 | 233 | } |
Index: trunk/extensions/MassBlank/MassBlank_body.php |
— | — | @@ -94,7 +94,7 @@ |
95 | 95 | foreach( $pages as $info ) { |
96 | 96 | list( $title, $edits ) = $info; |
97 | 97 | $image = $title->getNamespace() == NS_IMAGE ? wfLocalFile( $title ) : false; |
98 | | - $thumb = $image && $image->exists() ? $image->getThumbnail( 120, 120 ) : false; |
| 98 | + $thumb = $image && $image->exists() ? $image->transform( array( 'width' => 120, 'height' => 120 ), 0 ) : false; |
99 | 99 | |
100 | 100 | $changes = wfMsgExt( 'nchanges', 'parsemag', $wgLang->formatNum( $edits ) ); |
101 | 101 | |
Index: trunk/extensions/News/NewsRenderer.php |
— | — | @@ -640,7 +640,7 @@ |
641 | 641 | $image = false; |
642 | 642 | } |
643 | 643 | |
644 | | - $thumb = $image ? $image->getThumbnail(80, 16) : null; |
| 644 | + $thumb = $image ? $image->transform( array( 'width' => 80, 'height' => 16 ), 0 ) : null; |
645 | 645 | if ($image && !$thumb) $thumb = $image; |
646 | 646 | $iconurl = $thumb ? $thumb->getUrl() : null; |
647 | 647 | |
Index: trunk/extensions/Nuke/Nuke_body.php |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | foreach( $pages as $info ) { |
135 | 135 | list( $title, $edits ) = $info; |
136 | 136 | $image = $title->getNamespace() == NS_IMAGE ? wfLocalFile( $title ) : false; |
137 | | - $thumb = $image && $image->exists() ? $image->getThumbnail( 120, 120 ) : false; |
| 137 | + $thumb = $image && $image->exists() ? $image->transform( array( 'width' => 120, 'height' => 120 ), 0 ) : false; |
138 | 138 | |
139 | 139 | $changes = wfMsgExt( 'nchanges', 'parsemag', $wgLang->formatNum( $edits ) ); |
140 | 140 | |
Index: trunk/extensions/Player/PlayerClass.php |
— | — | @@ -383,7 +383,8 @@ |
384 | 384 | if ($thumbname) $thumbimg = wfFindFile( $thumbname ); |
385 | 385 | |
386 | 386 | if ($thumbimg && $thumbimg->exists()) { |
387 | | - $tni = $thumbimg->getThumbnail( $this->width, $this->height ); |
| 387 | + |
| 388 | + $tni = $thumbimg->transform( array( 'width' => $this->width, 'height' => $this->height ), 0 ); |
388 | 389 | if ($tni) $thumbstyle = 'background-image:url('.$tni->getUrl().'); background-position:center; background-repeat:no-repeat; text-decoration:none;'; |
389 | 390 | } |
390 | 391 | |