Skip to content

Conversation

osnard
Copy link
Member

@osnard osnard commented Jul 11, 2025

Apparently ImageMagick is very resource consuming. Using a tool like vips may reduce the this.

ERM43030

[5.x]

@osnard
Copy link
Member Author

osnard commented Aug 19, 2025

Apparently Extension:PdfHandler has a hard dependency to ImageMagick.
While we can disable it for thumbnails, we will need to ship the binary. See hallowelt/mediawiki#316 and #93

$GLOBALS['wgEnableUploads'] = true;
$GLOBALS['wgUploadPath'] = $GLOBALS['wgScriptPath'] . '/img_auth.php';
$GLOBALS['wgUseImageMagick'] = true;
$GLOBALS['wgUseImageMagick'] = false;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this a required settings by Extension:Thumbro? Telling from its usage of the BitmapHandlerTransformHook, which is called at https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/core/+/refs/heads/REL1_43/includes/media/TransformationalImageHandler.php#232 , scaler "hookaborted" will be used as an overwriting option regardless of the $wgUseImageMagick config value.

Copy link
Contributor

@huaj1ng huaj1ng Aug 19, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants