https://bugzilla.wikimedia.org/show_bug.cgi?id=31078
Web browser: ---
Bug #: 31078
Summary: isMultiPage() sometimes returns false even though TIFF
is always a multipage format
Product: MediaWiki extensions
Version: any
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: PagedTiffHandler
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
The function isMultiPage() sometimes returns false, even though TIFF is a
multipage format. If the particular file has only one page, that doesn't change
the format from being a multipage format.
>From the notes in "include/filerepo/File.php", this function should return
"true" for any format which support multipage, irrespective of the number of
pages in that particular file:
"Returns 'true' if this file is a type which supports multiple pages, e.g. DJVU
or PDF. Note that this may be true even if the file in question only has a
single page."
Thus the current behaviour deviates from the documented API. As it is, it is
breaking the ProofreadPage extension which uses the isMultiPage() function to
test for ability of the <pagelist/> tag to support that file.
==Current behaviour==
* isMultiPage() sometimes returns "false", sometimes "true"
==Expected behaviour==
* isMultiPage() always returns "true"
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l