Le Sat, 31 Mar 2012 18:45:09 +0200,
Thomas Petazzoni <[email protected]> a écrit :

> 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 <[email protected]>
> ---
>  INSTALL           |    5 ++++-
>  scripts/render.py |   40 +++++++++++++++++++++++++++++++++++-----
>  2 files changed, 39 insertions(+), 6 deletions(-)

Applied.

Thomas
-- 
Thomas Petazzoni                http://thomas.enix.org
MapOSMatic                      http://www.maposmatic.org
Logiciels Libres à Toulouse     http://www.toulibre.org
Embedded Linux                  http://www.free-electrons.com

Reply via email to