From 019310a7e2be1f818bab9fd22f0ce3db8f5146c2 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Tue, 3 May 2016 13:22:21 -0400 Subject: Changed output to a JPEG because of Twitter's upload size restrictions --- infinite.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'infinite.cpp') 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) textimage.opacity(((double)MaxRGB) * 0.8); image.composite(textimage, 0, 0, Magick::OverCompositeOp); - image.magick("png"); + image.magick("jpg"); Magick::Blob outputimg; image.write(&outputimg); @@ -746,7 +746,7 @@ int main(int argc, char** argv) std::cout << "Generated image!" << std::endl << "Tweeting..." << std::endl; long media_id; - twitter::response resp = client.uploadMedia("image/png", (const char*) outputimg.data(), outputimg.length(), media_id); + twitter::response resp = client.uploadMedia("image/jpeg", (const char*) outputimg.data(), outputimg.length(), media_id); if (resp != twitter::response::ok) { std::cout << "Twitter error while uploading image: " << resp << std::endl; -- cgit 1.4.1