Last modified: 2011-03-13 18:04:52 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T21220, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 19220 - Pdf rendering does not scale images according to inline px size
Pdf rendering does not scale images according to inline px size
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
Collection (Other open bugs)
unspecified
All All
: Lowest enhancement (vote)
: ---
Assigned To: PediaPress Development Team
http://en.wikibooks.org
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-15 17:07 UTC by Graeme E. Smith
Modified: 2011-03-13 18:04 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Graeme E. Smith 2009-06-15 17:07:13 UTC
Pdf rendering loads image files at original size without regard to guidelines suggested by author in inline PX statement in wikitext, this means that size limitations for storage, can affect rendering quality and Formatting of page.
Comment 1 PediaPress Development Team 2009-06-16 09:38:38 UTC
Could you please supply an example article where this goes "wrong" (please also indicate which images are affected).
Comment 2 Graeme E. Smith 2009-06-16 14:48:31 UTC
Sure, here goes

Try http://en.wikibooks.org/User:Graeme E. Smith/Testpage

You can see that it accepts the base document size with no problem

Reduces it to a smaller size, but refuses to expand it to a larger size

Of course I am exagerating this version to the point where it is blurry and all the mistakes in the original image are visible, but I think that it should be the Authors choice whether or not to expand an illustration or picture, and how much.

You might for instance want a blurry picture, to illustrate a point.

If you look at this file in Wikilanguage the third version nearly fills the screen, but in PDF it is almost exactly the same size as the original. The point I am trying to make is that for storage reasons pictures of a certain size are allowed at creative commons, but for display purposes you might want something a little larger, even if you have to sacrifice some quality to get it.

I hope this helps.
Comment 3 PediaPress Development Team 2009-06-17 09:58:12 UTC
Ok, now I know what you are talking about. 
In principle the PDF render uses the width/height information if present. The problem you are experiencing is that there is a minimum resolution at which images are rendered. Since the image in your example has a low resolution it does not get scaled up if you set the width to 800 pixels. If you use a higher resolution image you should get the expected result.

The minimum resolution is present, since I believe low resolution images should not be scaled up to much since this looks ugly in a PDF. Since the minimum resolution is a global setting for a wiki I would not really want to lower it. 

Therefore I am closing this bug. If you think its a big issue please reopen.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links