Page MenuHomePhabricator

Proofread Page maximum width for images generated from djvu files
Closed, ResolvedPublic

Description

Author: enomil

Description:
After removing the maximum image width with Bug 33613 there can be errors while generating thumbnails. For example the djvu file [1] has the resolution of 5,664x7,140px. Generating thumbnails up to 3850px working fine, 3851px and more causing an error [2]: "Error generating thumbnail Error creating thumbnail: terminate called after throwing an instance of 'DJVU::GException' pnmtojpeg: EOF / read error reading magic number". [3]

This is limited by $wgMaxShellMemory [4]. The extension must be calculate an maximum width regarding to $wgMaxShellMemory. Perhaps the same for PDF files.

[1] http://commons.wikimedia.org/w/index.php?title=File:Die_Leichenr%C3%A4uber-Gerstaecker-1846.djvu
[2] http://upload.wikimedia.org/wikipedia/commons/thumb/7/7f/Die_Leichenr%C3%A4uber-Gerstaecker-1846.djvu/page1-5664px-Die_Leichenr%C3%A4uber-Gerstaecker-1846.djvu.jpg
[3] http://www.mediawiki.org/wiki/Manual:How_to_use_DjVu_with_MediaWiki#Problems_and_solutions
[4] http://www.mediawiki.org/wiki/Manual:$wgMaxShellMemory


Version: master
Severity: normal

Details

Reference
bz37563