in reply to gdImageCreateFromGd2Part

Are you by any chance converting a script from another language or perhaps using the gdlib documentation rather than the GD docs?

I ask, because I cannot see any evidence of a function called gdImageCreateFromGd2Part() being exported from GD.pm.

I think that the function you are looking for is exported from GD as $image = GD::Image->newFromGd2Part($file,srcX,srcY,width,height).


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
The "good enough" maybe good enough for the now, and perfection maybe unobtainable, but that should not preclude us from striving for perfection, when time, circumstance or desire allow.