[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] [RaQ4] Php image functions



> >is imagecopyresampled() the only GD function that's failing, or is it all
of
> >them?
>
> It's the only one we've tried so far.

I have a resize function that calls some netpbm binaries to do the actual
resizing, but it uses GD to get the image color depth and dimensions.

When I wrote it, the reason was because GD only resized rather than
resampled images.  I don't know if the situation has changed, but you're
welcome to it if
imagecreatefromjpeg,imagecreatefromgif,imagecreatefrompng,imagecolorstotal
and imagedestroy work for you.  I'm using the pkgmaster php-4.1.2-3, and I
have no conflicts.

The netpbm binaries you would need to use with it are
jpegtopnm,giftopnm,pngtopnm,pnmtojpeg,ppmtogif,ppmquant and pnmscale.

Let me know if you would like a copy.

I apologise for the top-posting.  I was unaware of the term - now I stand
informed ;-) thanks.