{"id":16759,"date":"2022-07-15T20:26:01","date_gmt":"2022-07-15T19:26:01","guid":{"rendered":"https:\/\/johnjohnston.info\/blog\/?p=16759"},"modified":"2022-07-15T20:29:14","modified_gmt":"2022-07-15T19:29:14","slug":"reversing-gif","status":"publish","type":"post","link":"https:\/\/johnjohnston.info\/blog\/reversing-gif\/","title":{"rendered":"Reversing Gif"},"content":{"rendered":"<p>I was interested to read <a href=\"https:\/\/davidwalsh.name\/how-to-reverse-an-animated-gif\">How to Reverse an Animated GIF<\/a><\/p>\n<blockquote><p><code> convert water-forward.gif -coalesce -reverse -quiet -layers OptimizePlus  -loop 0 water-reversed.gif<\/code><\/p><\/blockquote>\n<p>So gave it a quick try. \u00a0The result wa fine, but my 228kb gif was 1.1 MB in reverse. So I had a wee look art the <a href=\"https:\/\/www.lcdf.org\/gifsicle\/man.html\">gifsicle man page<\/a>\u00a0and ended up after a few tries with:<\/p>\n<p><code>gifsicle -U stairs01.gif  \"#-1-0\" --colors 32  -O3 -o downstairsR.gif<\/code><\/p>\n<p>249kb<\/p>\n<figure id=\"attachment_16761\" aria-describedby=\"caption-attachment-16761\" style=\"width: 500px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" data-attachment-id=\"16761\" data-permalink=\"https:\/\/johnjohnston.info\/blog\/reversing-gif\/downstairsr\/\" data-orig-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/07\/downstairsR.gif\" data-orig-size=\"500,281\" 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=\"downstairsR\" data-image-description=\"\" data-image-caption=\"\" data-large-file=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/07\/downstairsR.gif\" class=\"wp-image-16761 size-full\" src=\"https:\/\/johnjohnston.info\/blog\/wp-content\/uploads\/2022\/07\/downstairsR.gif\" alt=\"animated gif from black and white film reversed so woman appears to walk down the stairs\" width=\"500\" height=\"281\" \/><figcaption id=\"caption-attachment-16761\" class=\"wp-caption-text\">I can&#8217;t recall when I made the original gif and which film I took it from.<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I was interested to read How to Reverse an Animated GIF convert water-forward.gif -coalesce -reverse -quiet -layers OptimizePlus -loop 0 water-reversed.gif So gave it a quick try. \u00a0The result wa fine, but my 228kb gif was 1.1 MB in reverse. So I had a wee look art the gifsicle man page\u00a0and ended up after a [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"mf2_syndication":["https:\/\/mastodon.social\/@johnjohnston\/108652997466491679","https:\/\/twitter.com\/johnjohnston\/status\/1548026953617133571"],"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":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":""},"categories":[1075],"tags":[17,768],"post_format":[],"class_list":{"0":"post-16759","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-reaction","7":"tag-animatedgif","8":"tag-gifsicle","9":"kind-note","11":"h-entry","12":"hentry"},"better_featured_image":null,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p57zFQ-4mj","jetpack_likes_enabled":false,"jetpack_sharing_enabled":true,"kind":false,"_links":{"self":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16759","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=16759"}],"version-history":[{"count":2,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16759\/revisions"}],"predecessor-version":[{"id":16762,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/posts\/16759\/revisions\/16762"}],"wp:attachment":[{"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/media?parent=16759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/categories?post=16759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/tags?post=16759"},{"taxonomy":"post_format","embeddable":true,"href":"https:\/\/johnjohnston.info\/blog\/wp-json\/wp\/v2\/post_format?post=16759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}