summary refs log tree commit diff stats
path: root/infinite.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'infinite.cpp')
-rw-r--r--infinite.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/infinite.cpp b/infinite.cpp index bf09fe2..22de917 100644 --- a/infinite.cpp +++ b/infinite.cpp
@@ -738,7 +738,7 @@ int main(int argc, char** argv)
738 textimage.opacity(((double)MaxRGB) * 0.8); 738 textimage.opacity(((double)MaxRGB) * 0.8);
739 image.composite(textimage, 0, 0, Magick::OverCompositeOp); 739 image.composite(textimage, 0, 0, Magick::OverCompositeOp);
740 740
741 image.magick("png"); 741 image.magick("jpg");
742 742
743 Magick::Blob outputimg; 743 Magick::Blob outputimg;
744 image.write(&outputimg); 744 image.write(&outputimg);
@@ -746,7 +746,7 @@ int main(int argc, char** argv)
746 std::cout << "Generated image!" << std::endl << "Tweeting..." << std::endl; 746 std::cout << "Generated image!" << std::endl << "Tweeting..." << std::endl;
747 747
748 long media_id; 748 long media_id;
749 twitter::response resp = client.uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length(), media_id); 749 twitter::response resp = client.uploadMedia("image/jpeg", (const char*) outputimg.data(), outputimg.length(), media_id);
750 if (resp != twitter::response::ok) 750 if (resp != twitter::response::ok)
751 { 751 {
752 std::cout << "Twitter error while uploading image: " << resp << std::endl; 752 std::cout << "Twitter error while uploading image: " << resp << std::endl;