Page MenuHomePhabricator

Image resizing fails (using GD library) due to wrong $this->type in Image.php
Closed, ResolvedPublic

Description

Author: jan.eglinger

Description:
I installed MediaWiki 1.5beta1 on an Apache/1.3.29 (Unix) environment with CGI
PHP Version 4.3.10 and external MySQL 4.0.20 (not localhost) with enabled
uploads, using GD library 2.0 or higher.

Image resizing fails as well with thumb and with nnnpx options. In
includes/Image.php the variable $this->type has the value "BITMAP" for jpeg and
png files.
The switch/case statement asks for numbers, not strings... I could not find how
the script exactly determined the mime type, I guess there's an error somewhere
in includes/MimeMagic.php ?


Version: 1.5.x
Severity: major

Details

Reference
bz2720

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:37 PM
bzimport set Reference to bz2720.
bzimport added a subscriber: Unknown Object (MLST).

zigger wrote:

*** This bug has been marked as a duplicate of 2780 ***