imagegd2

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • rain_c1@web.de

    imagegd2

    Hi,

    I do not understand, why this does not work for me:

    $strBinary = file_get_conten ts('test.jpg');
    $resHandle = imagecreatefrom string($strBina ry);
    ob_start();
    imagegd2($resHa ndle);
    $strBinary2 = ob_get_clean();
    imagecreatefrom string($strBina ry2);

    I get
    >function.image createfromstrin g: Passed data is not in 'GD2' format
    for the second call of imagecreatefrom string

    As check that my php is set up correctly i tried that and it worked:

    $strBinary = file_get_conten ts('test.jpg');
    $resHandle = imagecreatefrom string($strBina ry);
    imagegd2($resHa ndle, 'test.gd2');
    $strBinary2 = file_get_conten ts('test.gd2');
    imagecreatefrom string($strBina ry2);

    Can anybody tell me where the difference is and why the first version
    does not work?

    Thanks,
    - Rainer Collet

Working...