Dump image object information

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

can someone tell me, if it's possible to "dump" an image object, created
like with the snippet below?

$im = ImageCreate (50, 100);
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "Ein Test-String", $text_color);

'var_dump($im)' only shows me the name of the handler, which is obvious.
Is there a way to show the elements of the image "behind" the handler,
like it is with a object?

Thanks for any help,

Re: Dump image object information

georg116 wrote:
Quoted text here. Click to load it

Maybe like this (not tested)?

if (ob_start()) {
  if (!imagepng($im)) {
    exit('Unable to create image.');
  $contents = ob_get_contents();

Mail sent to my "From:" address is publicly readable at http://www.dodgeit.com /
== ** ## !!                                                         !! ## ** ==
bypass the spam filter. I will answer all pertinent mails from a valid address.

Site Timeline