How can i upload an image using curl through image create functions (imgpng, imagecreatefromstring,..)
This is how i'm currently doing it normally without create functions
curl_setopt($ch, CURLOPT_POST, true);
$post = array(
"Filedata"=>"@{$file_location}"
);
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
how to do the same thing with an image function, lets say imagecreatefromstring(file_get_contents($image_link));
and link it with the curl without having to save the file, directly through the function