I'm trying to resize image and upload it to FTP server without saving it on local disc but I didn't find any method how to do that. Function ftp_fput obviously doesn't TAKE image resource as argument.
I'm trying to do this:
imagecopyresampled($canvas, $image, 0, 0, 0, 0, $width, $height, $oldWidth, $oldHeight);
ob_start();
imagejpeg($canvas);
$stream = ob_get_clean();
// ftp_->fput(imagecreatefromstring($stream));
ftp_->fput($stream);
Any help?