74
edits
No edit summary |
No edit summary |
||
(18 intermediate revisions by the same user not shown) | |||
Line 29: | Line 29: | ||
----Cloud Code---- | ----Cloud Code---- | ||
<pre style="font-size:smaller" > | <pre style="font-size:smaller" > | ||
<source lang="python"> | |||
#cloud | #cloud | ||
width = 400 | width = 400 | ||
Line 83: | Line 84: | ||
</pre> | </pre> | ||
</source> | |||
Line 107: | Line 109: | ||
[[File:Screen Shot 2558-06-17 at 12.03.18 AM.png]] | [[File:Screen Shot 2558-06-17 at 12.03.18 AM.png]] | ||
As can be seen here,in this step, the final | As can be seen here,in this step, the final result take only small part of the source image. | ||
It is quite difficult to | It is quite difficult to trace back what the source image look like but it is the preparation for the next step. | ||
code for the image processing | code for the image processing | ||
============================= | ============================= | ||
< | |||
<source lang="python"> | |||
from PIL import Image, ImageDraw,ImageFilter | from PIL import Image, ImageDraw,ImageFilter | ||
Line 220: | Line 223: | ||
</ | </source> | ||
'''FINAL BOT''' | |||
'''STEP 2 : moving Kaleido''' | '''STEP 2 : moving Kaleido''' | ||
Line 238: | Line 241: | ||
so they will affect how smooth the animated GIF going to be. | so they will affect how smooth the animated GIF going to be. | ||
'''STEP 3 Making the bot works online''' | |||
The @kaleidogif twiiter account is created to be the page for the bot. | |||
( Before that I just did trial and errors with my own account) | |||
Link : [KaleidoGIF twitter|https://twitter.com/kaleidogif] | |||
[[File:Botscreen1.PNG|900px]] | |||
This is the example result. | This is the example result. | ||
Line 244: | Line 258: | ||
[[File:Kaleidogif1.gif]] | [[File:Kaleidogif1.gif]] | ||
more examples of the final result !! | |||
[[File:Botexamplegif2.gif]] | [[File:Botexamplegif2.gif]] | ||
[[File: | [[File:Kaleidoexample3.gif.gif|320 px]] | ||
[[File:Kaleidoexample2.gif|320 px]] | |||
'''FINISHING STEP''' | |||
Last step . . . for the summaery event , I improved a bit the quality of the | |||
GIF by editing the code to be able to make best quality it can and also the final GIF is not larger that the twitter status update limit. | |||
So I added lines of code to get the size of the final GIF and resize it if it exceed the limit. | |||
The complete code can be found here in the GitHub link. | '''The complete code of the final version can be found here in the GitHub link'''. [https://github.com/AaeApasri/KaleidoGIFBot] | ||
feel free to download and develop it further if you are interested. ;) |
edits