0
트위터에 의해 Twitter에 생성 된 이미지를 게시하고 싶습니다. jpg, png 또는 gif 파일을 Twitter에 바로 게시 할 수 있습니다.php로 만든 이미지 게시
header("Content-Type: image/png");
$im = @imagecreate(110, 20)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 0, 0, 0);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
어떻게 내가 트위터에이 이미지 ($im)
을 게시 할 수 있습니다 :
$params = array(
'status' => 'This is my text',
'media[]' => '/images/image.png'
);
$reply = $cb->statuses_updateWithMedia($params);
이 코드에 의해 PNG로 이미지를 만들었습니다?
임시 이미지를 작성하고 게시 한 다음 제거하는 방법은 무엇입니까? – alpera