Last modified: 2010-05-15 16:03:11 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 13265 - $wgMediaHandlers is missing image/x-bmp in DefaultSettings.php
$wgMediaHandlers is missing image/x-bmp in DefaultSettings.php
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
1.13.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
: 15144 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-06 05:28 UTC by Carl Austin Bennett
Modified: 2010-05-15 16:03 UTC (History)
2 users (show)

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


Attachments

Description Carl Austin Bennett 2008-03-06 05:28:53 UTC
The defaults for $wgMediaHandlers need to be changed to:


/**
 * Plugins for media file type handling.
 * Each entry in the array maps a MIME type to a class name
 */
$wgMediaHandlers = array(
        'image/jpeg' => 'BitmapHandler',
        'image/png' => 'BitmapHandler',
        'image/gif' => 'BitmapHandler',
        'image/x-ms-bmp' => 'BmpHandler',
        'image/x-bmp' => 'BmpHandler', 
        'image/svg+xml' => 'SvgHandler', // official
        'image/svg' => 'SvgHandler', // compat
        'image/vnd.djvu' => 'DjVuHandler', // official
        'image/x.djvu' => 'DjVuHandler', // compat
        'image/x-djvu' => 'DjVuHandler', // compat
);


For some reason, the existing MediaWiki default values have 'x-ms-bmp' listed here but not 'x-bmp'. Depending on what tools a site is using to detect file types for uploads, this can break display of uncompressed bitmaps.
Comment 1 Antoine "hashar" Musso (WMF) 2008-03-17 20:31:46 UTC
Fixed in r32076
Comment 2 Antoine "hashar" Musso (WMF) 2008-08-27 18:25:54 UTC
*** Bug 15144 has been marked as a duplicate of this bug. ***

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


Navigation
Links