Last modified: 2013-09-29 15:16:16 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 T38594, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 36594 - Switch to MuPDF for thumbnailing PDFs
Switch to MuPDF for thumbnailing PDFs
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
PdfHandler (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://www.mupdf.com/
:
Depends on:
Blocks: 36580
  Show dependency treegraph
 
Reported: 2012-05-07 14:29 UTC by Mark A. Hershberger
Modified: 2013-09-29 15:16 UTC (History)
0 users

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


Attachments

Description Mark A. Hershberger 2012-05-07 14:29:56 UTC
On #ghostscript, Robin_Watts suggested using MuPDF for thumbnailing:

<Robin_Watts> mupdf is optimised for screen output, so may be a better bet for
              what you need.  [10:02]
Comment 1 Brion Vibber 2013-09-29 15:16:16 UTC
For reference:

http://www.mupdf.com/ is a little light on info, but code is under AGPL license.


Default build appears to create a command-line app 'mudraw' as well as the GUI viewer:

$ ./build/debug/mudraw
usage: mudraw [options] input [pages]
	-o -	output filename (%d for page number)
	-F -	output format (if no -F, -o will be examined)
		supported formats: pgm, ppm, pam, png, pbm, tga
	-p -	password
	-r -	resolution in dpi (default: 72)
	-w -	width (in pixels) (maximum width if -r is specified)
	-h -	height (in pixels) (maximum height if -r is specified)
	-f -	fit width and/or height exactly (ignore aspect)
	-c -	colorspace {mono,gray,grayalpha,rgb,rgba}
	-b -	number of bits of antialiasing (0 to 8)
	-B -	maximum bandheight (pgm, ppm, pam output only)
	-g	render in grayscale
	-m	show timing information
	-M	show memory use summary
	-t	show text (-tt for xml, -ttt for more verbose xml)
	-x	show display list
	-d	disable use of display list
	-5	show md5 checksums
	-R -	rotate clockwise by given number of degrees
	-G -	gamma correct output
	-I	invert output
	-l	print outline
	-j -	Output mujstest file
	-i	ignore errors and continue with the next file
	pages	comma separated list of ranges

Sounds like it wouldn't be hard to support as a replacement or supplement to gs.

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


Navigation
Links