From dd26d2b8e726e874d47e41e42ad74fb2b8e4c07a Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 31 Oct 2012 20:11:09 +0100 Subject: [PATCH] Add 'dimensions' and 'thumbmine' to resultproperties in prop=imageinfo This also effects list=allimages/prop=stashimageinfo Change-Id: I5fee9539f376a2164f3143f23c23aa18fb96a4b8 --- includes/api/ApiQueryImageInfo.php | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/includes/api/ApiQueryImageInfo.php b/includes/api/ApiQueryImageInfo.php index de0261413f..1933c7887d 100644 --- a/includes/api/ApiQueryImageInfo.php +++ b/includes/api/ApiQueryImageInfo.php @@ -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( -- 2.20.1