[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Swftools-common] Problems with converting pdf to image
From: |
Matthias Kramm |
Subject: |
Re: [Swftools-common] Problems with converting pdf to image |
Date: |
Sat, 25 Aug 2012 17:02:49 -0700 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Aug 14, 2012 at 01:52:44PM +0400, ?????????? ????????????
<address@hidden> wrote:
> I've been trying to convert pdf to png files using python gfx library. Most
> of the images are ok, but sometimes I get something like this:
> http://okey.uat.usetech.ru/media/catalogs/covers/2012-08-14/thumbs/volzhskij.png.100x125_q85.png
>
> Some layers are replaced with black background. How can I fix this problem?
> Some extra parameters, maybe?
>
> swftools version is 0.9.2
> gfx version is 0.9.2
>
> The code, that I use for conversation is here:
> https://gist.github.com/3347909, I'm extracting just the cover.
Try
gfx.setparameter("bitmap", "1")
.
That'll use a rendering backend that's better at handling transparency drawing
operations, which is probably what's causing the black background problem.
Matthias