Last modified: 2010-05-15 16:03:11 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 T15265, the corresponding Phabricator task for complete and up-to-date bug report information.
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