Last modified: 2014-09-01 13:44:57 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 T43388, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41388 - [Regression] DjVu size info not extracted, thumbs failing
[Regression] DjVu size info not extracted, thumbs failing
Status: RESOLVED WORKSFORME
Product: Wikimedia
Classification: Unclassified
Media storage (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://commons.wikimedia.org/wiki/Fi...
:
Depends on:
Blocks: Wikisource 41371
  Show dependency treegraph
 
Reported: 2012-10-25 11:40 UTC by Nemo
Modified: 2014-09-01 13:44 UTC (History)
6 users (show)

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


Attachments

Description Nemo 2012-10-25 11:40:38 UTC
See URL. Some weird output instead of size info somewhere, probably: we even have "×  pixels, file size: 93 KB, MIME type: image/vnd.djvu" shown in a pre, thumbs URLs are not even included.
Seems a regression because the file had been added to https://no.wikipedia.org/wiki/Kristnisaga
Bigger example at https://commons.wikimedia.org/wiki/File:Federal_Cases_28_extra.djvu
Comment 1 Andre Klapper 2012-10-25 22:18:11 UTC
Testing with several other Djvu files on Wikisource they can still be opened, it's "just" the preview being broken. Checking if this Djvu file is broken itself woudl also be good. => Normal priority.

Note that the visual outcome here is similar to PDF bug 41281 (but that does not mean that it's the same code failing).
Comment 2 Nemo 2012-10-26 06:32:43 UTC
(In reply to comment #1)
> Testing with several other Djvu files on Wikisource they can still be opened,
> it's "just" the preview being broken.

Which other DjVu? If you find more like this, please report them.

> Checking if this Djvu file is broken
> itself woudl also be good.

The DjVu surely has some oddity and this bug is about finding it, but okular opens it without a glitch.
Comment 3 Derk-Jan Hartman 2012-10-26 08:18:17 UTC
For the message it seems that you have 'w x h' of 'MediaWiki:file-info-size. w and h are substituded with blanks because they are not known and then you have " x ", which is then parsed as wiki text, which converts the leading spacing to a pre block.

Solution is to insert ' ' or '0' into the message if the size cannot be calculated (seems most other media formats use '0'.
Comment 4 Derk-Jan Hartman 2012-10-26 08:19:18 UTC
This issue probably became visible only last year, since then we moved the () outside of MediaWiki:file-info-size.
Comment 5 Nemo 2012-10-26 08:26:15 UTC
I don' know what's the best way to show info about a DjVu, but:

$ ddjvu -verbose /var/tmp/Federal_Cases_28_extra.djvu > /dev/null

-------- page 1 -------
This is a legal Compound DjVu image.
DJVU Image (2839x4078, 300 dpi) version 25:

  0.0 Kb 'INFO' Page information.
  0.0 Kb 'CIDa' Unrecognized chunk.
  8.6 Kb 'Sjbz' JB2 foreground mask (2839x4078, 300 dpi).
  0.2 Kb 'FG44' IW44 foreground colors (237x340, 25 dpi).
  1.1 Kb 'BG44' IW44 background (947x1360, 100 dpi).
  0.2 Kb 'BG44' IW44 background (part 2, 100 dpi).
  0.0 Kb 'BG44' IW44 background (part 3, 100 dpi).
  0.3 Kb 'BG44' IW44 background (part 4, 100 dpi).
  0.9 Kb 'TXTz' Text (text, etc.).

Compression ratio: 2976 (11.4 Kb)
Decoding time:     42 ms
Rendering time:   125 ms
Producing PPM file.
Comment 6 Antoine "hashar" Musso (WMF) 2012-10-26 08:31:59 UTC
See also bug 37764 which is about the API not returning metadata for DjVU files.  It has a patch in Gerrit change #24660.
Comment 8 Bawolff (Brian Wolff) 2014-05-17 16:38:27 UTC
To clarify, is there anything still needing doing here? https://commons.wikimedia.org/wiki/File:Federal_Cases_28_extra.djvu looks fine to me.
Comment 9 Nemo 2014-05-17 16:53:55 UTC
(In reply to Bawolff (Brian Wolff) from comment #8)
> To clarify, is there anything still needing doing here?
> https://commons.wikimedia.org/wiki/File:Federal_Cases_28_extra.djvu looks
> fine to me.

The spacepre was fixed because it now says "0 × 0 pixel", but the DjVu is still not rendered: no size information, no thumbnails. Okular reads it fine.
Comment 10 Bawolff (Brian Wolff) 2014-05-17 17:12:04 UTC
Umm, I get:

Original file ‎(2,839 × 4,078 pixels, file size: 79.16 MB, MIME type: image/vnd.djvu, 1,410 pages) with a thumbnail, etc for the file from commons


The WikiLivres one looks broken, but that's probably due to a configuration issue on their end (Probably $wgDjvuDump is set to the wrong thing or something)
Comment 11 Marco 2014-05-25 10:31:36 UTC
Sorry, I misclicked. (The https://commons.wikimedia.org/wiki/File:Federal_Cases_28_extra.djvu is working but the other djvus are not)

https://commons.wikimedia.org/wiki/File:Kristnisaga.djvu
Comment 12 Bawolff (Brian Wolff) 2014-05-25 13:00:47 UTC
(In reply to Marco from comment #11)
> Sorry, I misclicked. (The
> https://commons.wikimedia.org/wiki/File:Federal_Cases_28_extra.djvu is
> working but the other djvus are not)
> 
> https://commons.wikimedia.org/wiki/File:Kristnisaga.djvu

Action=purge seemed to fix that for me. Any other known examples?
Comment 13 Andre Klapper 2014-09-01 13:44:57 UTC
Closing again as per comment 12.

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


Navigation
Links