Last modified: 2014-08-17 11:49:05 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 T37380, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 35380 - file path for paged media
file path for paged media
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
File management (Other open bugs)
unspecified
All All
: Lowest enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
aklapper-moreinfo
:
Depends on:
Blocks: Wikisource 41037
  Show dependency treegraph
 
Reported: 2012-03-21 11:24 UTC by enomil
Modified: 2014-08-17 11:49 UTC (History)
6 users (show)

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


Attachments

Description enomil 2012-03-21 11:24:50 UTC
Currently there is no support for getting the file path of a paged media like pdf and djvu.

{{filepath:FFC2.djvu|page=3}}
actual value: //upload.wikimedia.org/wikipedia/commons/b/b0/FFC2.djvu
expected value: //upload.wikimedia.org/wikipedia/commons/thumb/b/b0/FFC2.djvu/page3-1020px-FFC2.djvu.jpg

{{filepath:FFC2.djvu|page=3|800}}
actual value: //upload.wikimedia.org/wikipedia/commons/thumb/b/b0/FFC2.djvu/page1-800px-FFC2.djvu.jpg
expected value: //upload.wikimedia.org/wikipedia/commons/thumb/b/b0/FFC2.djvu/page3-800px-FFC2.djvu.jpg

Same for Special:FilePath.
Comment 1 Beau 2012-04-13 14:07:57 UTC
What is the use for this function?
Comment 2 enomil 2012-04-16 16:27:24 UTC
It is the normal use as for non paged media: to get the file path of an image. But for single pages it is harder to find: each page of an djvu/pdf can have another resolution and to get the full image of an page you need the width for it, because it is used in the link itself.
Comment 3 Andre Klapper 2012-11-19 15:27:53 UTC
enomil: Why would you want to get the file path of an image?
Comment 4 Bawolff (Brian Wolff) 2012-11-19 21:09:21 UTC
(In reply to comment #3)
> enomil: Why would you want to get the file path of an image?

There's a completeness issue here as well. {{filepath}} exists and accepts parameters, hence it should work for all types of media. In particular page number parameter is part of core, but even beyond that for completeness sake it should work with all possible parameters (like tiff files can specify lossy vs lossless thumbnail). Obviously that's a bit of an ideal world thing, allowing arbitrary image parameters is not a very high priority thing, and might be rather complicated. But it would be nice.

For interest, original reason for adding a width parameter was "Requested by Krinkle for his Wordpress plugin (PhotoCommons)" (According to the commit summary of r80381)


/me would kind of be curious to see how {{filepath}} is actually used in practice as it seems to be one of the more useless magic words...
Comment 5 Andre Klapper 2013-02-05 12:34:56 UTC
enomil: Could you answer comment 3 and 4, please?
Comment 6 Andre Klapper 2013-04-11 13:03:53 UTC
enomil: Could you answer comment 3 and 4, please?
Comment 7 Andre Klapper 2014-08-17 11:49:05 UTC
Unfortunately closing this report as no further information has been provided.

enomil: Please feel free to reopen this report if you can provide the information asked for in comment 3 and comment 4, and if this still happens. Thanks!

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


Navigation
Links