I wanted to create a small image gallery aka 'favicons'.
I found two problems, the first one while uploading
debug.log:
WebRequest::getFileName() 'myfavicon.ico' normalized to 'myfavicon.ico'
Block::load: '84.191.72.110', '1', 1
MimeMagic::MimeMagic: loading mime types from includes/mime.types
MimeMagic::MimeMagic: loading mime info from includes/mime.info
MimeMagic::detectMimeType: no magic mime detector found!
MimeMagic::detectMimeType: image mime type of /tmp/php7eycaa: image/vnd.wap.wbmp
MimeMagic::guessMimeType: final mime type of /tmp/php7eycaa: image/vnd.wap.wbmp
SpecialUpload::verifyExtension: mime type image/vnd.wap.wbmp mismatches file
extension ico, rejecting file
Solution: add in the file /includes/mime.types the line
image/vnd.wap.wbmp ico
Remark: this type was shown in the debug log for several files of different
origin when uploading with Netscape 7.1
and add in /includes/DefaultSettings.php the file extension to the existing array
$wgFileExtensions = array(......, 'ico' )
This allows to upload an *.ico file.
However, the image page is not showing the thumbnail, perhaps because the
thumbnail routines cannot render this. But also [[image:myfavicon.ico]] does not
work, i.e. does not render the image (needs to be fixed).
Both problems need review of experts of the /include/Image.php module.
Version: 1.5.x
Severity: normal