Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 389309

Summary: app-text/ghostscript-gpl transparent png export fix from upstream
Product: Gentoo Linux Reporter: László Szalma <dblaci>
Component: Current packagesAssignee: Printing Team <printing>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description László Szalma 2011-11-02 09:59:10 UTC
I ran into a bug, when i tried to export transparent pngs when the resolution dpi is high.

I found that it is fixed in upstream, but i needed it now, so i tried only that patch, and it works fine. Consider using the patch and release another -r ebuild

Reproducible: Always

Steps to Reproduce:
gs -dUseCropBox -dSAFER -dBATCH -dNOPAUSE -r300 -sDEVICE=pngalpha -dTextAlphaBits=4 -sOutputFile="pic_%03d.png" test.pdf

Actual Results:  
png background if white (#ff0000)

Expected Results:  
png with transparent background

http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=5ce12e8;hp=f790680acba5c1574728d5ff40124f9e27762d2a

this patch works (saved as alphapng.patch)

i put this line in the 9.04-r4 ebuild (on line 85)
epatch "${FILESDIR}/alphapng.patch"
Comment 1 Timo Gurr (RETIRED) gentoo-dev 2011-12-21 21:16:19 UTC
Thanks for providing a solution, the upstream fix is included in the patch tarball for -r5.