"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "includes/media/TransformationalImageHandler.php" between
mediawiki-1.31.1.tar.gz and mediawiki-1.32.0.tar.gz

About: MediaWiki is a wiki engine (the collaborative editing software that runs for e.g. Wikipedia, the free encyclopedia).

TransformationalImageHandler.php  (mediawiki-1.31.1):TransformationalImageHandler.php  (mediawiki-1.32.0)
skipping to change at line 130 skipping to change at line 130
# Comment as will be added to the Exif of the thumbnail # Comment as will be added to the Exif of the thumbnail
'comment' => isset( $params['descriptionUrl'] ) 'comment' => isset( $params['descriptionUrl'] )
? "File source: {$params['descriptionUrl']}" ? "File source: {$params['descriptionUrl']}"
: '', : '',
# Properties of the original image # Properties of the original image
'srcWidth' => $image->getWidth(), 'srcWidth' => $image->getWidth(),
'srcHeight' => $image->getHeight(), 'srcHeight' => $image->getHeight(),
'mimeType' => $image->getMimeType(), 'mimeType' => $image->getMimeType(),
'dstPath' => $dstPath, 'dstPath' => $dstPath,
'dstUrl' => $dstUrl, 'dstUrl' => $dstUrl,
'interlace' => isset( $params['interlace'] ) ? $params['i nterlace'] : false, 'interlace' => $params['interlace'] ?? false,
]; ];
if ( isset( $params['quality'] ) && $params['quality'] === 'low' ) { if ( isset( $params['quality'] ) && $params['quality'] === 'low' ) {
$scalerParams['quality'] = 30; $scalerParams['quality'] = 30;
} }
// For subclasses that might be paged. // For subclasses that might be paged.
if ( $image->isMultipage() && isset( $params['page'] ) ) { if ( $image->isMultipage() && isset( $params['page'] ) ) {
$scalerParams['page'] = intval( $params['page'] ); $scalerParams['page'] = intval( $params['page'] );
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)