Last modified: 2011-01-30 16:58:48 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 T29038, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27038 - UploadStash does not support showing thumbnails of paged media (like pdf's), or other weird filetypes like ogg.
UploadStash does not support showing thumbnails of paged media (like pdf's), ...
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Uploading (Other open bugs)
1.18.x
All All
: Normal minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-01-30 03:34 UTC by Bawolff (Brian Wolff)
Modified: 2011-01-30 16:58 UTC (History)
3 users (show)

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


Attachments

Description Bawolff (Brian Wolff) 2011-01-30 03:34:51 UTC
Upload stash seems to fail for paged media (pdf's is what i tested. But same issue presumably applies to other paged formats like Djvu, and other "weird" formats like ogg most likely).

This seems to be because SpecialUploadStash only accounts for width parameters to be at the begining of the thumbnail name. It doesn't look for a page parameter. Handler's can define there own parameter, so this would also break for things like oggHandler, which can have a seek parameter for where in the video the image was pulled from.

As a secondary issue, UploadStash doesn't support files with multiple extensions (key is not in proper format...), which happens for pdf's (And some other non-image formats) since the thumbnail is jpg, but the original is pdf. so the filename of a thumb ends up being page1-100px-foo.pdf.jpg
Comment 1 Bawolff (Brian Wolff) 2011-01-30 03:40:02 UTC
Just to clarify, this is for showing thumbnails. Downloading the original files is just fine. I'm not really sure how showing thumbnails from upload stash is used, so i'm not sure how big an issue this is. But you can make a query using stashimageinfo api module, get a url for a thumbnail, but then have the url totally not work.
Comment 2 Bryan Tong Minh 2011-01-30 14:32:53 UTC
UploadStash should use the proper MediaHandler::*Params() functions instead of doing the regex themselves.
It should also use different base urls for thumbnails and files; I propose Special:UploadStash/file/ and Special:Upload/thumb/
Comment 3 Bryan Tong Minh 2011-01-30 16:58:48 UTC
Fixed in r81209.

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


Navigation
Links