{"id":15873816,"url":"https://github.com/phronmophobic/clogif","last_synced_at":"2025-03-16T04:30:46.029Z","repository":{"id":202828668,"uuid":"708223492","full_name":"phronmophobic/clogif","owner":"phronmophobic","description":"Create gifs in clojure!","archived":false,"fork":false,"pushed_at":"2024-01-23T20:43:03.000Z","size":62,"stargazers_count":10,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-27T05:02:51.995Z","etag":null,"topics":["clojure","gif"],"latest_commit_sha":null,"homepage":"","language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/phronmophobic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-21T22:31:26.000Z","updated_at":"2023-12-09T04:10:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ace08cb-fbc0-49f7-943d-85bf572a8b20","html_url":"https://github.com/phronmophobic/clogif","commit_stats":null,"previous_names":["phronmophobic/clogif"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclogif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclogif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclogif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phronmophobic%2Fclogif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phronmophobic","download_url":"https://codeload.github.com/phronmophobic/clogif/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243802943,"owners_count":20350316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clojure","gif"],"created_at":"2024-10-06T01:07:05.018Z","updated_at":"2025-03-16T04:30:45.581Z","avatar_url":"https://github.com/phronmophobic.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# clogif\n\nCreate gifs in clojure!\n\nBuilt with [FFmpeg](https://ffmpeg.org/) and [clj-media](https://github.com/phronmophobic/clj-media).\n\n## Rationale\n\nThis library is a small wrapper around `clj-media` that offers a simplified API for creating GIFs using best practices.\n\n## Dependency\n\n```edn\ncom.phronemophobic/clogif {:mvn/version \"1.4\"}\n```\n\n## Usage\n\n```clojure\n(require '[com.phronemophobic.clogif :as gif])\n```\n\n```clojure\n(gif/save-gif!\n (gif/graphics-\u003emedia\n  (fn [g frameno]\n    (.setColor g java.awt.Color/white)\n    (.fillRect g 0 0 100 100)\n    (.setColor g java.awt.Color/black)\n    (.drawString g (str \"Hello World \" frameno) 5 50))\n  (range 24))\n \"hello-world.gif\")\n```\n![Hello World](/assets/hello-world.gif?raw=true)\n\n### [Membrane](https://github.com/phronmophobic/membrane) Compatible!\n\n```clojure\n(require '[membrane.java2d :as java2d]\n         '[membrane.ui :as ui])\n(gif/save-gif!\n (gif/graphics-\u003emedia\n  java2d/draw-to-graphics\n  {:width 100\n   :height 18}\n  (eduction\n   (map (fn [frameno]\n          [(ui/filled-rectangle [1 1 1]\n                                100 18)\n           (ui/label (str \"membrane: \" frameno))]))\n   (range 24)))\n \"membrane.gif\")\n```\n\n![Membrane gif](/assets/membrane.gif?raw=true)\n\n## License\n\nCopyright © 2023 Adrian\n\nThe contents of this repository may be distributed under the Apache License v2.0 or the GPLv2.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclogif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphronmophobic%2Fclogif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphronmophobic%2Fclogif/lists"}