Skip to content
Advertisement

Tag: gdlib

How to convert PNG to 8-bit PNG using PHP GD library

I want to write a routine which takes PNG image path as parameter and convert that image into 8-bit PNG image. I need to use PHP GD library for this. Answer To convert any PNG image to 8-bit PNG use this function, I’ve just created function convertPNGto8bitPNG () Parameters $sourcePath – Path to source PNG file $destPath – Path to

How would I skew an image with GD Library?

I want to skew an image into a trapezoidal shape. The left and right edges need to be straight up and down; the top and left edges need to be angular. I have no idea what the best way to do this is. I’m using GD Library and PHP. Can anyone point me in the right direction? Thanks, Jason Answer

Advertisement