Page MenuHomePhabricator

Problem with rebuildImages.php and SVG images
Closed, ResolvedPublic

Description

They always have a width and height of '0'.

I corrected the problem by modifying FiveUpgrade.inc like follows:

Index: FiveUpgrade.inc

  • FiveUpgrade.inc (révision 15240)

+++ FiveUpgrade.inc (copie de travail)

@@ -716,7 +716,7 @@

    1. Height and width $gis = false; if( $mime == 'image/svg' ) {
  • $gis = wfGetSVGsize( $this->imagePath );

+ $gis = wfGetSVGsize( $filename );

} elseif( $magic->isPHPImageType( $mime ) ) {
        $gis = getimagesize( $filename );
} else {

Version: 1.7.x
Severity: normal
OS: Linux
Platform: PC

Details

Reference
bz6523

Event Timeline

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