https://bugzilla.wikimedia.org/show_bug.cgi?id=25989

           Summary: Image scaling given only the height does not seem to
                    work
           Product: MediaWiki
           Version: 1.16.0
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: gabi.t.san...@gmail.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


The API does not seem to allow any way to retrieve a thumb url for an image
given only its height and no width specified.
For instance, accessing the following URL:
http://en.wikipedia.org/w/api.php?action=query&format=xml&titles=File:Flag+of+Spain.svg&prop=imageinfo&iiprop=dimensions|url&iiurlheight=28

gives the following XML response:

<api>
<error code="iiiiurlwidth" info="iiurlheight cannot be used without
iiurlwidth"/>
</api>

How, therefore, could one retrieve a thumb url for an image given the height to
scale to, without specifying the width ? An example of such a situation would
be when parsing the following snippet of wikitext:
[[Image:Flag of Spain.svg |x28px]] - here only the height is specified, thus an
image of the flag of Spain should be retrieved having the height set to 28
pixels and the width scaled accordingly.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to