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