summaryrefslogtreecommitdiff
path: root/pgconf%25253fh%25253dv0.5.3&id%25253d68ce98bc210e7023bb2421cafd251c368aec23be...
diff options
context:
space:
mode:
authorNick White <git@njw.name>2021-02-15 17:09:20 +0000
committerNick White <git@njw.name>2021-02-15 17:09:20 +0000
commit44a027984044a55a8a483268ddf0b841e9f33e83 (patch)
treec575a43b60757f297e94287390bc06a18e098f3f /pgconf%25253fh%25253dv0.5.3&id%25253d68ce98bc210e7023bb2421cafd251c368aec23be&id2%25253d5459fbca17efad20e433aeaa442df14831f8ac82
parent11470933e4fd379b4aefa4e2bab33662a72791c2 (diff)
getsamplepages: Add -prefix option, and use 'best' to get random page numbers
The -prefix option is useful to us. Previously only a .jpg for page number 100 was retreived, which failed if the book had fewer (or unusually named) pages, and also didn't provide a corresponding .hocr at all (bug introduced with 48958d2). Using 'best', which is (effectively) randomly sorted, provides a guaranteed to exist page, and a random one at that.
Diffstat (limited to 'pgconf%25253fh%25253dv0.5.3&id%25253d68ce98bc210e7023bb2421cafd251c368aec23be&id2%25253d5459fbca17efad20e433aeaa442df14831f8ac82')
0 files changed, 0 insertions, 0 deletions