While server-side applications may be able to grab image contents (e.g., for an SVG file) by directly visiting the image URL they obtain from a prior API query, for JSONP in particular, it would be great if image contents could be exposed to be returned as content via the API (called maybe "image" or "filecontent" or whatever).
For example:
/w/api.php?action=query&titles=File:Example.svg&prop=imageinfo&iiprop=image&format=json
might return something like:
..."imageinfo": {"image": {"*": "<svg>....</svg>"}}
Thanks!
Version: unspecified
Severity: enhancement