For multi-page renderings, the thumbnail was useless: it was the last
page of the index. Instead, we create with ImageMagick a small
thumbnail thats displays the cover page and overview page of the
multi-page PDF. We take into account landscape/portrait renderings to
combine those two images into a single thumbnail with a good ratio.
We directly use subprocess to run the ImageMagick commands, because
the Python ImageMagick API is so poorly documented that after spending
several hours trying to figure out which method to use, switching to
subprocess with ImageMagick commands turned out to be a more
reasonable solution.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@enix.org>
Added a few instructions in INSTALL to test. Also added instructions
in the config templates to help customize the python search path.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>
Update the installation instructions for the new rendering daemon and
provide and updated init script template.
Signed-off-by: Maxime Petazzoni <maxime.petazzoni@bulix.org>