Missing SVG image in parsoid: Bug in PHP imageinfo API?
OpenPublic

Assigned To
None
Priority
Normal
Author
TheDJ
Subscribers
TheDJ, Elitre, ssastry
Projects
Reference
bz57299
Security
None
Description

The PHP expanded template generates on: https://en.wikipedia.org/wiki/Algeria

<tr>
<td align="center" style="width:58%; vertical-align:middle;">[[File:Flag of Algeria.svg|125px|border|alt=|Flag of Algeria]]</td>
<td align="center" style="width:auto;vertical-align:middle;">[[File:Algeria emb (1976).svg |85px |alt= |Emblem of Algeria]]</td>
</tr>

In Parsoid this SVG Emblem image is missing:
http://parsoid.wmflabs.org/enwiki/Algeria?oldid=582506391

The <td> that should contain it is empty.


Version: unspecified
Severity: normal

bzimport added a project: Parsoid.Via ConduitNov 22 2014, 2:27 AM
bzimport set Reference to bz57299.
TheDJ created this task.Via LegacyNov 20 2013, 11:42 AM
GWicke added a comment.Via ConduitDec 4 2013, 2:10 AM

This might be related to that file having a different name on commons: https://en.wikipedia.org/wiki/File:Algeria_emb_(1976).svg is actually
https://commons.wikimedia.org/wiki/File:Seal_of_Algeria.svg

The image info returned from enwiki is not very helpful though:

{

"query": {
  "pages": {
    "-1": {
      "ns": 6,
      "title": "File:Algeria emb (1976).svg",
      "missing": "",
      "imagerepository": ""
    }
  }
}

}

For comparison, this is the info returned for [[File:Flag of Algeria.svg]], also from commons:

{

"query-continue": {
  "imageinfo": {
    "iistart": "2013-03-02T15:06:32Z"
  }
},
"query": {
  "pages": {
    "-1": {
      "ns": 6,
      "title": "File:Flag of Algeria.svg",
      "missing": "",
      "imagerepository": "shared",
      "imageinfo": [
        {
          "size": 954,
          "width": 900,
          "height": 600,
          "url": "http://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Algeria.svg",
          "descriptionurl": "http://commons.wikimedia.org/wiki/File:Flag_of_Algeria.svg"
        }
      ]
    }
  }
}

}

This might actually be a bug in the PHP API.

Arlolra placed this task up for grabs.Via WebNov 25 2014, 7:58 PM
Arlolra set Security to None.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.