Last modified: 2012-04-16 09:16:12 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T28125, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 26125 - Support API access to number of pages in a DjVu file
Support API access to number of pages in a DjVu file
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-11-26 01:31 UTC by Hesperian
Modified: 2012-04-16 09:16 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Hesperian 2010-11-26 01:31:28 UTC
There is no way to obtain the number of pages in a DjVu file through the API.

I suggest the best option is to provide it as part of the image info size property:

<ii size="1314181" width="1540" height="2632" pages=26/>
Comment 1 Bryan Tong Minh 2010-11-27 18:52:27 UTC
r77364
Comment 2 Hesperian 2010-11-30 23:22:21 UTC
Mediawiki deployment is now up to r77471 but imagesize still isn't returning pageCount.

See for example <http://commons.wikimedia.org/w/api.php?action=query&titles=File:English%20Fairy%20Tales.djvu&prop=imageinfo&iiprop=size>
Comment 3 Sam Reed (reedy) 2010-11-30 23:23:10 UTC
Yes, because this file hasn't been synced out. That's a different branch

It's could be a while...
Comment 4 Bryan Tong Minh 2010-12-01 08:03:33 UTC
Yeah, it may take three months or more until we sync.
Comment 5 billinghurst 2011-02-19 09:55:54 UTC
Minor minor component

The api.php information component needs to be updated 

==Currently==

* prop=imageinfo (ii) *
  Returns image information and upload history

This module requires read rights
Parameters:
...
size          - Adds the size of the image in bytes and the height and width


==Required addition==

size     - Adds the size of the image in bytes and the height, width and pagecount
Comment 6 billinghurst 2011-02-19 10:05:07 UTC
told to open a new request instead of reopen this.  That I will do.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links