fork download
  1. import Image, ImageDraw, ImageFont, sys
  2.  
  3. dimensions = (400, 200)
  4. img = Image.new("RGB", dimensions)
  5.  
  6. # text
  7. font = ImageFont.truetype("/usr/local/share/fonts/UbuntuMono-B.ttf", 50)
  8. font2 = ImageFont.truetype("/usr/local/share/fonts/UbuntuMono-B.ttf", 25)
  9. draw=ImageDraw.Draw(img)
  10. draw.text((20, 20), 'Hacker News : ', fill=(255,255,255), font=font)
  11. draw.text((30, 100), 'You can paint on Ideone', fill=(200,200,200), font=font2)
  12.  
  13. # ideone output
  14. img.save(sys.stdout, 'PNG')
  15.  
Success #stdin #stdout 0.16s 12752KB
stdin
Standard input is empty
stdout
̈O1ьJ1mSX|,,,?MMM<vM_J׿E_|EWGA2*ǏoG]]]U]]]Fd/Qի3baGL|C'ޞGP^^|vv6dWOi筷ޢyw8)B_PjzqɌgE]\\?hTQQ1ة䩼q}Nݝ1_f\_vi$&&FGGh{ 8vرNv$Zĉt9r,JP}USSC_diiIN2^;aF Q>;?|Ĉ182224~oƁ?=j433cT*11 CyP0ʙ>}HOOOFdnn.n ø[oq+ yW\֩SEs̡ϧ2ʽ{ɗ)Br>|5111==[T644ܻw~A[9yyym~mdM!??Q'1(mP3LLLx r_~uǪ?d'Oٶmȑ#NX[[ر_~ٵk`'5povz۷O/mwEF>O'1(|VXA?{l+LF_D=XSS'AIIIԜCnnn fgg P?kː` o|0a?0aaa!` -UQtA8˅.]N^jkkoٲ @"lB$Ӽyfee Ou/5(Z?fƣ9992d$X'.]]])))~>+Gr _~Y㷦MF-5\cdff9sxW ZVLLLpp E5551зB͜9LqMMN4>Ehhh#33C` `Ϟ=XsٳgKRDo?##5Vž{ǎj?z{~0~y8HO?5uWGGǨQoooH5A$͝;̙3Ϣ'$$`(N`9:mwN[#G oM؋8f?1K-lb|9B?Qܽ{766M*ҪU7u֦&v.^_ 0f;::K=o ziĄ,JE3ͰaFpxx~)q'6XCΝKR[[W_Q-[Fƍ9999g8jkkKG#UWW뗼ztf_*&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