Page MenuHomePhabricator

Thumbnails of PDFs with non-standard page sizes are rendered incorrectly
Closed, ResolvedPublic

Description

The extension is not able to render correctly the preview for pdf with non standart size, example https://commons.wikimedia.org/wiki/File:WikiProjekt_Chranena_uzemi_dotaznik_2011_spoluprace_s_PrF_UK.pdf generated image is correct, however predefined size for thumb on commons isn't


Version: unspecified
Severity: normal

Details

Reference
bz33722

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:00 AM
bzimport set Reference to bz33722.
bzimport added a subscriber: Unknown Object (MLST).

It looks like the size is being detected in the wrong orientation... MediaWiki thinks the image is portrait, while it's getting rendered as landscape. The resulting thumbnails get stretched and look very wrong.

Hmnm, does not seem as if this information is properly retrievable from pdfinfo....

ragimiri wrote:

Any progress in this bug?

This is related to (or even a duplicate of) bug #22194, isn't it?

seth: Good catch, thanks!

  • This bug has been marked as a duplicate of bug 22194 ***
Gilles raised the priority of this task from Medium to Unbreak Now!.Dec 4 2014, 10:23 AM
Gilles added a project: Multimedia.
Gilles moved this task from Untriaged to Done on the Multimedia board.
Gilles lowered the priority of this task from Unbreak Now! to Medium.Dec 4 2014, 11:21 AM