* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError|bool Error object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformImageMagick( $image, $params ) {
# use ImageMagick
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError Error|bool object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformImageMagickExt( $image, $params ) {
global $wgSharpenReductionThreshold, $wgSharpenParameter, $wgMaxAnimatedGifArea,
* @param File $image File associated with this thumbnail
* @param array $params Array with scaler params
*
- * @return MediaTransformError Error|bool object if error occurred, false (=no error) otherwise
+ * @return MediaTransformError|false Error object if error occurred, false (=no error) otherwise
*/
protected function transformCustom( $image, $params ) {
# Use a custom convert command
*
* @param File|FSFile $image
* @param string $filename
- * @return array
+ * @return array|false
*/
function getImageSize( $image, $filename ) {
$f = fopen( $filename, 'rb' );
/**
* Return data in the style of getimagesize()
- * @return array|bool Array or false on failure
+ * @return array|false Array or false on failure
*/
public function getImageSize() {
$data = $this->getInfo();
*
* @param File|FSFile $image
* @param string $path
- * @return array
+ * @return array|false
*/
function getImageSize( $image, $path ) {
$gis = parent::getImageSize( $image, $path );
* @param File|FSFile $image The image object, or false if there isn't one.
* Warning, FSFile::getPropsFromPath might pass an FSFile instead of File (!)
* @param string $path The filename
- * @return array|bool Follow the format of PHP getimagesize() internal function.
+ * @return array|false Follow the format of PHP getimagesize() internal function.
* See https://www.php.net/getimagesize. MediaWiki will only ever use the
* first two array keys (the width and height), and the 'bits' associative
* key. All other array keys are ignored. Returning a 'bits' key is optional
* @param File|FSFile $file
* @param string $path Unused
* @param bool|array $metadata
- * @return array
+ * @return array|false
*/
function getImageSize( $file, $path, $metadata = false ) {
if ( $metadata === false && $file instanceof File ) {
*
* @param File|FSFile $image
* @param string $filename
- * @return array
+ * @return array|false
*/
function getImageSize( $image, $filename ) {
$header = self::getXCFMetaData( $filename );