Page MenuHomePhabricator

SocialProfile is not compatible with ImageMagick v7
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Use ImageMagick ($wgUseImageMagick = true) with the v7 parser
  • Attempt to upload an avatar at Special:UploadAvatar

What happens?:
ImageMagick fails to see the file resulting in:
An unknown error occurred in storage backend "The file does not exist.

What should have happened instead?:
Avatar is uploaded successfully.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
MediaWiki 1.45.1
SocialProfile 1.14

Other information (browser name/version, screenshots, etc.):
ImageMagick 7.1.1-43 via Firejail.

The v7 parser expects the file to be specified before any options[1]. Note that this issue does not happen with convert which seems to use the legacy parser.

Downstream: https://issue-tracker.miraheze.org/T15047

[1]: https://imagemagick.org/script/porting.php#cli

Details

Event Timeline

Pskyechology changed the task status from Open to In Progress.EditedMar 9 2026, 1:37 AM
Pskyechology claimed this task.

Will submit a patch on Gerrit soon*.
*in relative terms, I got a bit too into making a decent patch and not just the bare minimum

Change #1255171 had a related patch set uploaded (by Pskyechology; author: Pskyechology):

[mediawiki/extensions/SocialProfile@master] Clean and fix ImageMagick usage

https://gerrit.wikimedia.org/r/1255171

Change #1255171 merged by jenkins-bot:

[mediawiki/extensions/SocialProfile@master] Clean and fix ImageMagick usage

https://gerrit.wikimedia.org/r/1255171

Resolved by merged patch.