]> sipb.mit.edu Git - ikiwiki.git/commit
add pagenumber parameter
authorchrysn <chrysn@fsfe.org>
Mon, 7 Apr 2014 09:32:25 +0000 (11:32 +0200)
committerchrysn <chrysn@fsfe.org>
Mon, 7 Apr 2014 09:32:25 +0000 (11:32 +0200)
commitbcc209eb5acd26e3751c5869cd5c1ebe66b0bf03
tree470783bccc4d9e366b770c51506dced57866dfbb
parent6cc43773e728df783e29389680e6bf50d3ef6592
add pagenumber parameter

this allows picking a page from a pdf. also, this enhances performance
greatly when rendering pdfs, as only the first page is rasterized.
(otherwise, imagemagick would treat the pdf as a list of images, work
with all of them, until finally only the first page gets saved). the
default parameter of 0 will select the single image contained in typical
image files anyway, so no specialcasing between single- and multifile
containers is needed.
IkiWiki/Plugin/img.pm
doc/ikiwiki/directive/img.mdwn