Status of GD

php.internals

John Coggeshall

23 years ago
I see that some (not all) of the functions found in GD 2.0.12 have been introduced into the bundled libgd, but even though functions like imagesetclip()/getclip() are there PHP wrappers haven't been created... Can anyone hint what will happen regarding these things? (esp. the three functions I provided a patch for)? I don't want to rely on their existance in my scripts until I know PHP5 will have them... I'll add them myself if no one objects. John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-

Ilia A.

23 years ago
On April 6, 2003 11:27 pm, John Coggeshall wrote:
> I see that some (not all) of the functions found in GD 2.0.12 have been > introduced into the bundled libgd, but even though functions like > imagesetclip()/getclip() are there PHP wrappers haven't been created...
I did not create any wrappers for the new GD functions, yet my goal was to sync our GD with the 'official' one. The one function I did not sync is image rotate since our bundled gd has an internal implementation which in my tests had proven to be better.
> Can anyone hint what will happen regarding these things? (esp. the three > functions I provided a patch for)? I don't want to rely on their > existance in my scripts until I know PHP5 will have them... I'll add > them myself if no one objects.
The clipping function wrapper you are more then welcome to add to PHP5. Ilia

John Coggeshall

23 years ago
>I did not create any wrappers for the new GD functions, yet my >goal was to >sync our GD with the 'official' one. The one function I did >not sync is image >rotate since our bundled gd has an internal implementation >which in my tests >had proven to be better.
Alright. Just for the sake of completeness, would you be against me creating a imagecopyrotated() function that basically just uses imagecopy() and PHP's imagerotate()? I think if we are going to have our own bundled GD lib that claims to be 2.0 compatiable it should have all that functionality.
>The clipping function wrapper you are more then welcome to add to PHP5.
I'll separate my patch (which included imagecopyrotated) and submit that after I confirm it works, and I hear back from you on my proposal. John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-

Ilia A.

23 years ago
On April 7, 2003 09:46 am, John Coggeshall wrote:
> Alright. Just for the sake of completeness, would you be against me > creating a imagecopyrotated() function that basically just uses > imagecopy() and PHP's imagerotate()? I think if we are going to have our > own bundled GD lib that claims to be 2.0 compatiable it should have all > that functionality.
Our code for the moment is 'mostly' compatible, if I have given you or anyone else the impression that it is 100% compatible let me assure you that is NOT the case. There are future plans that may change even that, but until they are finalized I would rather not saying anything about them. As a rule I recommend that people use the bunbled GD as it has a number of features not found in bunbled GD as well as numerous fixes not present in the 'official' GD. Our native rotate function was avaliable since 4.3.0 and that is what people should be using. Having PHP5 comeout and suddenly have 2 different rotate functions would only cause user confusion (IMHO).
> I'll separate my patch (which included imagecopyrotated) and submit that > after I confirm it works, and I hear back from you on my proposal.
Please post a separate clipping patch (php wrapper), from what I saw in the originall patch, it seemed ok. We certainly can and should add that functionality PHP5. Ilia

John Coggeshall

23 years ago
>Please post a separate clipping patch (php wrapper), from what >I saw in the >originall patch, it seemed ok. We certainly can and should add that >functionality PHP5.
It's your baby. :) John -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~- John Coggeshall john at coggeshall dot org http://www.coggeshall.org/ -~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~--~=~-