Add 'dimensions' and 'thumbmine' to resultproperties in prop=imageinfo
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 31 Oct 2012 19:11:09 +0000 (20:11 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 18 Nov 2012 18:25:19 +0000 (18:25 +0000)
This also effects list=allimages/prop=stashimageinfo

Change-Id: I5fee9539f376a2164f3143f23c23aa18fb96a4b8

includes/api/ApiQueryImageInfo.php

index de02614..1933c78 100644 (file)
@@ -580,6 +580,15 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                        ApiBase::PROP_NULLABLE => true
                                )
                        ),
+                       'dimensions' => array(
+                               'size' => 'integer',
+                               'width' => 'integer',
+                               'height' => 'integer',
+                               'pagecount' => array(
+                                       ApiBase::PROP_TYPE => 'integer',
+                                       ApiBase::PROP_NULLABLE => true
+                               )
+                       ),
                        'comment' => array(
                                'commenthidden' => 'boolean',
                                'comment' => array(
@@ -635,6 +644,13 @@ class ApiQueryImageInfo extends ApiQueryBase {
                                        ApiBase::PROP_NULLABLE => true
                                )
                        ),
+                       'thumbmime' => array(
+                               'filehidden' => 'boolean',
+                               'thumbmime' => array(
+                                       ApiBase::PROP_TYPE => 'string',
+                                       ApiBase::PROP_NULLABLE => true
+                               )
+                       ),
                        'mediatype' => array(
                                'filehidden' => 'boolean',
                                'mediatype' => array(