Last modified: 2010-05-15 15:34:03 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 3002 - image size option does nothing
image size option does nothing
Status: RESOLVED INVALID
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.4.x
All All
: Normal normal with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-08-01 16:24 UTC by Chris Lowe
Modified: 2010-05-15 15:34 UTC (History)
1 user (show)

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


Attachments

Description Chris Lowe 2005-08-01 16:24:09 UTC
According to the documentation, it is possibe to specify an image size based on
the following format
[[Image:spotty_picture.gif|frame|100px|none|This should be terribly wee. Why
isn't image scaling working?]]

I would imagine the 100px to be translated into the resultant image.

However on both a 1.5beta4 and a 1.4.7 version of Mediawiki this appears not to
be working.  The generated html doesn't contain a height=100 attribute.  The
HTML looks like this:

<img src="/images/e/e2/spotty_poicture.gif" alt="This should be terribly wee.
Why isn't image scaling working?" width="960" height="720"
longdesc="/Image:spotty_picture.gif" />

Cheers,

Chris.
Comment 1 Brion Vibber 2005-08-01 17:06:32 UTC
Is image resizing enabled in LocalSettings.php?
Comment 2 Chris Lowe 2005-08-01 22:21:19 UTC
Yes, image resizing is enabled.  
$wgUseImageResize	= true;

(It's probably not relevant that in one instance I enabled ImageMagick.  This
appears only to be useful for Thumbnail generation)
Comment 3 Duncan Harris 2005-09-20 14:52:00 UTC
The |frame| tag overrides the size description so it is displayed at 100% resolution regardless of whatever 
size you try to specify in the markup.  To get the effect you want use the |thumb| markup instead of the 
|frame| markup. e.g. for the above example:

[[Image:spotty_picture.gif|thumb|100px|none|This is terribly wee. The image scaling ''is'' working!]]

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


Navigation
Links