<p><div><div><div><div data-show-faces="false" data-height="21" data-width="100" data-layout="button_count" data-send="true" data-href="https://www.r-bloggers.com/how-i-find-manage-and-use-gifs/"></div></div><div></div></div><div></div></div>
<div>
(This article was first published on <strong><a href="https://yihui.name/en/2017/05/gifs/"> English Blog on Yihui Xie | 谢益辉</a></strong>, and kindly contributed to <a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers)</a> </div>
<p>A few months ago <a rel="nofollow" href="https://twitter.com/JennyBryan" target="_blank">Jenny</a> wanted me (and Karthik, if I remember correctly) to share some experience with GIFs. I have been busy with writing the <a rel="nofollow" href="https://bookdown.org/yihui/blogdown/" target="_blank"><strong>blogdown</strong> book</a> recently and don’t really have much time, so I’m going to write a quick post just to take a short break. I may expand this post in the future.</p>
<p>First thing first. I tend to pronounce “GIF” with the <em>soft</em> G, but I feel there are much more people saying the hard G. Since my native language is not English, I usually try to say the hard G when I speak in English (and hard G in Chinese). I’m fine with either way, and I promise I won’t <a rel="nofollow" href="http://theoatmeal.com/comics/gif" target="_blank">turn your skull into a toilet</a>.</p>
<h2>Where do I find GIFs?</h2>
<p>Twitter is my primary source. I don’t follow a lot of people on Twitter since I don’t want to spend much time on social media,<sup><a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fn:I-use-a-Chrome-e" target="_blank">1</a></sup> and I follow two accounts <a rel="nofollow" href="https://twitter.com/AmazingGlFS" target="_blank">@AmazingGlFS</a> and <a rel="nofollow" href="https://twitter.com/ThingsWork" target="_blank">@ThingsWork</a>. Of course, many people often tweet with GIFs every day, and I will collect a few funny ones occasionally.</p>
<p>I used to collect GIFs from WeChat, too, but recently I found WeChat disabled downloading images from the articles published there. I was disappointed but that is okay. I don’t collect GIFs frequently anyway.</p>
<p>When I see a funny GIF on Twitter, I copy the URL of the tweet and paste to <a rel="nofollow" href="https://ezgif.com/optimize" target="_blank">ezgif.com</a> to convert the MP4 video<sup><a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fn:Twitter-used-to" target="_blank">2</a></sup> to GIF and optimize it a little bit.</p>
<p><a rel="nofollow" href="https://giphy.com/" target="_blank">Giphy</a> has tons of GIFs but I rarely actively look for GIFs there. I often save a GIF from a context, such as in a Tweet. The context will give me more inspiration.</p>
<h2>How do I manage GIFs?</h2>
<p>I don’t have a clever method to manage my GIFs. I simply store them in a Dropbox folder. All my slides, which you can find in my <a rel="nofollow" href="https://yihui.name/en/vitae" target="_blank">CV</a>, are hosted in Dropbox via <a rel="nofollow" href="https://updog.co/" target="_blank">Updog</a><sup><a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fn:Updog-used-to-be" target="_blank">3</a></sup> and I have assigned a subdomain slides.yihui.name to serve these (HTML) slides as well as the GIFs. For example, <a rel="nofollow" href="https://slides.yihui.name/gif/goose-smile.gif" target="_blank">https://slides.yihui.name/gif/goose-smile.gif</a> actually points to a GIF file in my Dropbox folder.</p>
<p>I don’t have a huge amount of GIFs in this folder (less than 100), so I don’t need a clever method for indexing or searching. I can remember most of them in my mind. The filenames are typically very short, like <a rel="nofollow" href="https://slides.yihui.name/gif/happy-elmo.gif" target="_blank">happy-elmo.gif</a> and <a rel="nofollow" href="https://slides.yihui.name/gif/mad-panda.gif" target="_blank">mad-panda.gif</a>.</p>
<p>I only collect the very good ones, and there are not many. For example, you may think I was silly, but I was excited to see the <a rel="nofollow" href="https://slides.yihui.name/gif/quick-fox.gif" target="_blank">quick fox</a> finally jumped over the brown dog. It feels like I had been waiting for this since 2002 (the first year I started using computers).</p>
<p>Sometimes static images are also funny. The one that made me smile the most is the <a rel="nofollow" href="https://slides.yihui.name/gif/karl-broman.jpeg" target="_blank">Moustache Karl</a>™ (it is like a male version of the Mona Lisa in my eyes and it makes me happy for mysterious reasons). Another example is those two-step instructions, such as <a rel="nofollow" href="https://slides.yihui.name/gif/draw-an-owl.jpg" target="_blank">how to draw an owl</a> and <a rel="nofollow" href="https://slides.yihui.name/gif/flip-table.jpg" target="_blank">how to flip a table</a> (I collected the latter from one of Karl’s recent tweets).</p>
<h2>How do I use GIFs?</h2>
<p>In short, you must have a strong ability of association. When I collect a GIF, I often have already got vague ideas of its possible use in my talks and I can associate it with software packages or techniques. So far I have been intentionally trying to avoid showing you actual GIFs in this post, because I don’t want to attract your attention, but now I need to show you an example of association:</p>
<p><img alt="git push --force" src="https://i2.wp.com/slides.yihui.name/gif/git-push-force.gif?w=456&ssl=1" data-recalc-dims="1"></p>
<p>I’m not sure what would come to your mind when you see this GIF, but I guess the keyword is “force”. One application of this GIF is to show the dreadful command line <code>git push --force</code>, and warn your audience not to do it. Another slightly less appropriate application is just to show the power of something, e.g., R Markdown <a rel="nofollow" href="https://slides.yihui.name/2016-useR-bookdown-Yihui-Xie.html#(9)" target="_blank">added much more force</a> to Markdown thanks to R and Pandoc.</p>
<p>When I prepare a talk, I will open the Dropbox folder. As I work on the slides, I will have all kinds of random thoughts, and some of them may be expressed in GIFs. I think I’m fairly good at associating random things with each other, and the consequence is unexpectedness, which can lead to fun. <a rel="nofollow" href="https://github.com/yihui/knitr/issues/1322" target="_blank">Here is an example</a> of how I associated a totally normal Github issue from Amelia to two GIFs, so that I could say no to a feature request that I was not interested in, (hopefully) without letting her down or making her feel too sad. Sometimes it works, and <a rel="nofollow" href="https://github.com/wch/r-source/commit/74c8486a039" target="_blank">sometimes</a> people don’t get it.</p>
<p>Even though I’m fairly familiar with the GIFs I collected, sometimes I could be shocked to know the actual stories behind them. Last year <a rel="nofollow" href="https://twitter.com/xieyihui/status/752577793687379968" target="_blank">when I announced </a> the first CRAN release of <strong>bookdown</strong> and asked for testing, I thought the scenes in the GIF were fake (who would possibly do the high bar over there!!) but someone told me it was <a rel="nofollow" href="http://gizmodo.com/5951446/this-guy-somehow-survived-a-free-fall-from-a-4000-foot-cliff" target="_blank">a real story</a>, and the man survived after he fell off the cliff.</p>
<h2>Can you share the full collection of your GIFs?</h2>
<p>No.<sup><a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fn:On-one-hand-I-do" target="_blank">4</a></sup></p>
<h2>Amusing ourselves to death</h2>
<p>Okay, now let’s put away the fun for a moment.</p>
<p>Recently my bed reading time has been spent on the book “<a rel="nofollow" href="https://en.wikipedia.org/wiki/Amusing_Ourselves_to_Death" target="_blank">Amusing Ourselves to Death</a>” (I’m reading a Chinese translation), and it is the first book that has made me feel anxious. I have been rethinking the many presentations that I have made over the years, and I think many people are familiar with my style now and even kind of expect GIFs in my talks. I want to make my talks entertaining because I often lose my attention when I attend other people’s talks. That is also the reason I usually avoid deep technical stuff in my talks (you can read the documentation any time after the talk by yourself instead of having me read the documentation out loud in 15 mins in front of you).</p>
<p>I have been trying to amuse the audience but I certainly do not want to amuse you to death (good intention <a rel="nofollow" href="https://slides.yihui.name/gif/save-him.gif" target="_blank">does not necessarily</a> lead to good results). I hope you can laugh and remember, instead of laughing then forgetting (like what was described as the effect of TV in the book).</p>
<p>GIF is an effective way to get people’s attention, but I guess we will need some time to think and check <a rel="nofollow" href="https://slides.yihui.name/gif/you-get-nothing.gif" target="_blank">what is actually left</a> after the laughters. I’ll truly appreciate it if you have ever attended any of my talks, but want to leave me some negative comments on my presentation style.</p>
<div>
<hr>
<ol>
<li>I use a Chrome extension named “StayFocusd” and limit my Twitter reading time to be 10 mins every day. <a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fnref:I-use-a-Chrome-e" target="_blank">↩</a></li>
<li>Twitter used to let us post GIFs directly but last year it started to convert GIF to MP4 for technical reasons. <a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fnref:Twitter-used-to" target="_blank">↩</a></li>
<li>Updog used to be cheap. When I became a Pro member, it only cost my $5 in total for a lifetime member. Now it is a little bit expensive. GIFs are static files, so you have many other choices to host them, althouth maybe not as convenient as Updog. Or you can use the free plan of Updog only to serve your GIFs but not HTML slides. <a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fnref:Updog-used-to-be" target="_blank">↩</a></li>
<li>On one hand, I don’t own these GIFs and I didn’t create them. On the other, I want you to think more carefully when deciding whether you want to download a GIF. You won’t value them if you are suddently given 100 GIFs that I carefully collected over the years. <a rel="nofollow" href="https://yihui.name/en/2017/05/gifs/#fnref:On-one-hand-I-do" target="_blank">↩</a></li>
</ol>
</div>
<p> </p>
<p>
<div>
<div>To <strong>leave a comment</strong> for the author, please follow the link and comment on their blog: <strong><a href="https://yihui.name/en/2017/05/gifs/"> English Blog on Yihui Xie | 谢益辉</a></strong>.</div>
<hr>
<a rel="nofollow" href="https://www.r-bloggers.com/">R-bloggers.com</a> offers <strong><a rel="nofollow" href="https://feedburner.google.com/fb/a/mailverify?uri=RBloggers">daily e-mail updates</a></strong> about <a rel="nofollow" href="https://www.r-project.org/" title="The R Project for Statistical Computing">R</a> news and <a rel="nofollow" href="https://www.r-bloggers.com/search/tutorial" title="R tutorials">tutorials</a> on topics such as: <a rel="nofollow" href="https://www.r-bloggers.com/search/data%20science" title="Data science">Data science</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Big%20Data" title="Big Data">Big Data, <a rel="nofollow" href="https://www.r-users.com/" title="R jobs">R jobs</a>, visualization (<a rel="nofollow" href="https://www.r-bloggers.com/search/ggplot2" title="ggplot and ggplot2 tutorials">ggplot2</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/boxplot" title="Boxplots using lattice and ggplot2 tutorials">Boxplots</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/map" title="Maps and gis">maps</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/animation" title="Animation in R">animation</a>), programming (<a rel="nofollow" href="https://www.r-bloggers.com/search/RStudio" title="RStudio IDE for R">RStudio</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/sweave" title="Sweave and literate programming">Sweave</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/LaTeX" title="LaTeX in R">LaTeX</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/SQL" title="SQL and databases">SQL</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/eclipse" title="Eclipse IDE for R">Eclipse</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/git" title="git and github, Version Control System">git</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/hadoop" title="Large data in R using Hadoop">hadoop</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/Web+Scraping" title="Web Scraping of google, facebook, yahoo, twitter and more using R">Web Scraping</a>) statistics (<a rel="nofollow" href="https://www.r-bloggers.com/search/regression" title="Regressions and ANOVA analysis tutorials">regression</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/PCA" title="principal component analysis tutorial">PCA</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/time+series" title="Time series">time series</a>, <a rel="nofollow" href="https://www.r-bloggers.com/search/trading" title="finance trading">trading</a>) and more...
<img width="1" alt="" src="http://feeds.feedburner.com/~r/RBloggers/~4/m1eNPQJVPdA" height="1"></a></div>