{"id":8773,"date":"2019-01-03T19:53:56","date_gmt":"2019-01-03T19:53:56","guid":{"rendered":"http:\/\/johnjohnston.info\/blog\/?p=8773"},"modified":"2019-01-03T19:53:56","modified_gmt":"2019-01-03T19:53:56","slug":"shrinking-squirrels","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/shrinking-squirrels\/","title":{"rendered":"Shrinking Squirrels"},"content":{"rendered":"<p>I do like a gif. I like to<a href=\"http:\/\/jjgifs.tumblr.com\/archive\"> make them<\/a>\u00a0in all sorts of ways. Recently I&#8217;ve been messing about with Live Photos. The mac Photos app will export gifs from these but they are huge. To my mind a gif should be as small as possible. The other problem wit Live photos is my hands tend to move. Today I tried the iOS app\u00a0<a href=\"https:\/\/get.google.com\/motionstills\/\">Motion Stills:<\/a><\/p>\n<blockquote><p>Motion Stills is an app from Google Research that uses advanced stabilization and rendering to turn your Live Photos and videos into GIFs<\/p><\/blockquote>\n<p>The only problem is that the files are pretty big. I took a photo of a squirrel in the botanic gardens this morning and ran it through the app. The stabilisation was great but the file size for the image was 8.7MB for a 480\u200a\u00d7\u200a360 image!<\/p>\n<p>I decided to see if I could shrink it a little and got it down to 331kb. This is how:<\/p>\n<ol>\n<li>I opened in the Gif in FireWorks<\/li>\n<li>The gif had 54 frames at 3\/100 of a second and one at 6\/100 of a second.\u00a0I deleted every second frame and doubled the length of each.<\/li>\n<li>The gif was set to have an exact pallet with 256 colours, i changed that to Adaptive and 128 colours.<\/li>\n<li>I set the loss to 20%<\/li>\n<li>I made a new layer which was shared across the frames. copied the first frame to that layer and cut out a space for the squirrel in the top layer. This froze most of the image except for the squirrel.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-2019-01-03-at-19.36.58.png\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"8775\" data-permalink=\"https:\/\/johnjohnston.info\/blog\/shrinking-squirrels\/screenshot-2019-01-03-at-19-36-58\/\" data-orig-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-2019-01-03-at-19.36.58.png\" data-orig-size=\"480,430\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screenshot 2019-01-03 at 19.36.58\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-2019-01-03-at-19.36.58.png\" class=\"aligncenter size-full wp-image-8775\" src=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/Screenshot-2019-01-03-at-19.36.58.png\" alt=\"\" width=\"480\" height=\"430\" \/><\/a><\/p>\n<p>The featured image of this post is the shrunken gif.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I do like a gif. I like to make them\u00a0in all sorts of ways. Recently I&#8217;ve been messing about with Live Photos. The mac Photos app will export gifs from these but they are huge. To my mind a gif should be as small as possible. The other problem wit Live photos is my hands [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8774,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":[],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"webmentions_disabled_pings":false,"webmentions_disabled":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[660,6],"tags":[17,854,503],"post_format":[],"class_list":{"0":"post-8773","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-micro","8":"category-wwwd","9":"tag-animatedgif","10":"tag-fireworks","11":"tag-gifs","12":"kind-article","14":"h-entry","15":"hentry"},"better_featured_image":{"id":8774,"alt_text":"","caption":"","description":"","media_type":"image","media_details":{"width":480,"height":360,"file":"2019\/01\/squrill640x480-128-colors-adpative-20percent-loss.gif","sizes":{"thumbnail":{"file":"squrill640x480-128-colors-adpative-20percent-loss-150x150.gif","width":150,"height":150,"mime-type":"image\/gif","source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/squrill640x480-128-colors-adpative-20percent-loss-150x150.gif"},"rpwe-thumbnail":{"file":"squrill640x480-128-colors-adpative-20percent-loss-45x45.gif","width":45,"height":45,"mime-type":"image\/gif","source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/squrill640x480-128-colors-adpative-20percent-loss-45x45.gif"},"jetpack-portfolio-admin-thumb":{"file":"squrill640x480-128-colors-adpative-20percent-loss-50x50.gif","width":50,"height":50,"mime-type":"image\/gif","source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/squrill640x480-128-colors-adpative-20percent-loss-50x50.gif"}},"image_meta":{"aperture":"0","credit":"","camera":"","caption":"","created_timestamp":"0","copyright":"","focal_length":"0","iso":"0","shutter_speed":"0","title":"","orientation":"0","keywords":[]}},"post":8773,"source_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/squrill640x480-128-colors-adpative-20percent-loss.gif"},"jetpack_featured_media_url":"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2019\/01\/squrill640x480-128-colors-adpative-20percent-loss.gif","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-2hv","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/8773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/comments?post=8773"}],"version-history":[{"count":2,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/8773\/revisions"}],"predecessor-version":[{"id":8777,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/8773\/revisions\/8777"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media\/8774"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=8773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=8773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=8773"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=8773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}