Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm working with the GD library for image manipulation, to which I need to create some transparent PNGs. Instead, I'm getting a black background. I've looked everywhere on how to generate a blank, transparent PNG canvas with it and all the answers just don't work for me.

On further inspection, I'm working with an old GD version:

The functions needed to create a transparent PNG requires 2.0.1 altough 2.0.28 or later is recommended. I installed php5-gd with apt-get, and aptitude haven't found new packages.

Do I have to add a new PPA? Where can I find it? What about forcing a version?

Thanks in advance!

share|improve this question
add comment

1 Answer 1

According to http://packages.ubuntu.com/precise/php5-gd You should have libgd 2.0.36 in Ubuntu 12.04. I believe the "2.0" there is just a major/minor version and isn't sharing with you the patch level. Perhaps something else is going wrong.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.