[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Maposmatic-dev] [PATCH] Generate nice thumbnails for multi-page ren

From: Thomas Petazzoni
Subject: Re: [Maposmatic-dev] [PATCH] Generate nice thumbnails for multi-page renderings
Date: Sat, 31 Mar 2012 18:47:50 +0200

Le Sat, 31 Mar 2012 18:45:09 +0200,
Thomas Petazzoni <address@hidden> 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 <address@hidden>
> ---
>  INSTALL           |    5 ++++-
>  scripts/ |   40 +++++++++++++++++++++++++++++++++++-----
>  2 files changed, 39 insertions(+), 6 deletions(-)


Thomas Petazzoni      
Logiciels Libres à Toulouse
Embedded Linux        

reply via email to

[Prev in Thread] Current Thread [Next in Thread]