David Benbennick wrote:
Given an image of width say 100, the code
"[[Image:Name|100px]]"
causes MediaWiki to generate a 100px thumbnail. Besides wasting disk
space, this bug is annoying since the thumbnail is often larger than
the original image.
Attached is a 1-character patch against CVS head that should fix the problem.
First, you need to define the problem.
Is the problem that a thumbnail is generated for a size of 100px? That's
not a problem; that's a deliberate feature! Transferring a 4 megabyte
photograph instead of a 70kb thumbnail doesn't make a lot of sense.
Is the problem that sometimes the generated thumbnail has a larger
filesize than the source file? Note that there are already some bugs
filed in bugzilla about the "sometimes a thubmnail is larger than the
source file" problem. It's unclear what the best solution is. You should
probably start with the existing bug reports on the subject.
(This is my first time submitting a patch for
MediaWiki. Is this the
right place? Or should I file a bug report on bugzilla instead?)
Bugzilla is the place. Besides the problem that something posted here
will not be maintained in a queue if it's not acted on immediately,
attachments usually do not pass through the list as we've disabled
binary attachments due to virus problems in the past.
-- brion vibber (brion @
pobox.com)