Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389309 - app-text/ghostscript-gpl transparent png export fix from upstream
Summary: app-text/ghostscript-gpl transparent png export fix from upstream
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Printing Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-02 09:59 UTC by László Szalma
Modified: 2011-12-21 21:16 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.