Risolto usando:

Codice PHP:
ob_start(); // start a new output buffer
   
imagejpeg$newimageNULL100 );
   
$ImageData ob_get_contents();
ob_end_clean// stop this output buffer 
Grazie cmq