Page MenuHomeDevCentral

Can't create on Agora thumbnail for too big PNG
Closed, ResolvedPublic

Description

Mural produces rather big PNG, as it's an alternative to PDF documents, and it tries to capture high-resolution data. For example the image I've uploaded is 2,680 × 4,845. That's 12 984 600 pixels, slightly greater than the 12.5 millions of pixel current limit.

MediaWiki uploads it, stores it but can't generate thumbnail.

URL: https://agora.nasqueron.org/File:ServPulse_user_stories_-_Persona_-_Nasqueron_member.png
Error message: Error creating thumbnail: File with dimensions greater than 12.5 MP

Note I was hesitating between upload each persona separately or one file with the 3. That consolidated file would have been 60 MP, not just "slightly over 12.5 MP".

According MediaWiki documentation, the goal is to avoid to be out of memory at thumbnail creation. See https://www.mediawiki.org/wiki/Manual:$wgMaxImageArea

Related Objects

Event Timeline

dereckson triaged this task as Normal priority.Jun 2 2023, 22:41
dereckson created this task.
dereckson updated the task description. (Show Details)

Plan is to temporarily increase $wgMaxImageArea from 12500000 to 15000000, so we can generate thumbnail for our files.

Then, we'll look in https://github.com/thumbor/thumbor, as a Docker service shared by our MediaWiki SaaS and other applications needing thumbnails. It's simple to install and use and work as a web service through URL exchange. You give to thumbor your image URL, it gives you back the work done (resize, crop mainly).

At Wikimedia:

  • they prepared plugins at operations/software/thumbor-plugins for every format supported by Mediawiki.
  • MediaWiki is NOT configured to use Thumbor: the requests to thumb.php are instead directed to Thumbor instead to be directed to MediaWiki
dereckson claimed this task.