http://www.mediawiki.org/wiki/Special:Code/MediaWiki/68346
Revision: 68346 Author: mglaser Date: 2010-06-21 10:19:40 +0000 (Mon, 21 Jun 2010) Log Message: ----------- fixed bug where lossiness would not be considered in thumb file names Modified Paths: -------------- trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php Modified: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php =================================================================== --- trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php 2010-06-21 02:16:21 UTC (rev 68345) +++ trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php 2010-06-21 10:19:40 UTC (rev 68346) @@ -214,9 +214,11 @@ if ( $params['page'] > $this->pageCount( $image ) ) { $params['page'] = $this->pageCount( $image ); } - if ( !isset( $params['lossy'] ) ) { - $params['lossy'] = null; - } + if ( !isset( $params['lossy'] ) || $params['lossy'] == null ) { + $data = $this->getMetaArray( $image ); + if ( ( strtolower( $data['page_data'][$params['page']]['alpha'] ) == 'true' ) ) $params['lossy'] = '0'; + else $params['lossy'] = 1; + } $size = PagedTiffImage::getPageSize( $this->getMetaArray( $image ), $params['page'] ); $srcWidth = $size['width']; $srcHeight = $size['height']; _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs