Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -214,9 +214,11 @@ |
215 | 215 | if ( $params['page'] > $this->pageCount( $image ) ) { |
216 | 216 | $params['page'] = $this->pageCount( $image ); |
217 | 217 | } |
218 | | - if ( !isset( $params['lossy'] ) ) { |
219 | | - $params['lossy'] = null; |
220 | | - } |
| 218 | + if ( !isset( $params['lossy'] ) || $params['lossy'] == null ) { |
| 219 | + $data = $this->getMetaArray( $image ); |
| 220 | + if ( ( strtolower( $data['page_data'][$params['page']]['alpha'] ) == 'true' ) ) $params['lossy'] = '0'; |
| 221 | + else $params['lossy'] = 1; |
| 222 | + } |
221 | 223 | $size = PagedTiffImage::getPageSize( $this->getMetaArray( $image ), $params['page'] ); |
222 | 224 | $srcWidth = $size['width']; |
223 | 225 | $srcHeight = $size['height']; |