{"id":21330751,"url":"https://github.com/gialib/melib","last_synced_at":"2025-03-16T00:41:19.129Z","repository":{"id":91555120,"uuid":"114097486","full_name":"gialib/melib","owner":"gialib","description":"Media Lib for Elixir","archived":false,"fork":false,"pushed_at":"2018-06-08T17:14:34.000Z","size":21580,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-22T13:41:26.920Z","etag":null,"topics":["elixir","image"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gialib.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-12-13T08:58:21.000Z","updated_at":"2018-06-08T17:14:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"0707b91c-6eb4-4d3f-98c8-101ebe967d5d","html_url":"https://github.com/gialib/melib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gialib%2Fmelib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gialib%2Fmelib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gialib%2Fmelib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gialib%2Fmelib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gialib","download_url":"https://codeload.github.com/gialib/melib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243809844,"owners_count":20351406,"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":["elixir","image"],"created_at":"2024-11-21T22:24:26.906Z","updated_at":"2025-03-16T00:41:19.081Z","avatar_url":"https://github.com/gialib.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Melib\n\nMedia Lib: image, vedio and so on\n\n## Installation\n\nIf [available in Hex](https://hex.pm/docs/publish), the package can be installed\nby adding `melib` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:melib, \"~\u003e 0.1.1\"}\n  ]\nend\n\n## config.exs eg.\n\nconfig :melib, :magick_path, \"/usr/local/ImageMagick7/bin\"\n```\n\n## Install ImageMagick-7\n\n```\ncd /usr/local/src \u0026\u0026 \\\nwget https://github.com/ImageMagick/ImageMagick/archive/7.0.7-35.tar.gz -O ImageMagick-7.0.7-35.tar.gz \u0026\u0026 \\\ntar xvzf ImageMagick-7.0.7-35.tar.gz \u0026\u0026 \\\nmv ImageMagick-7.0.7-35 ImageMagick7 \u0026\u0026 \\\ncd ImageMagick7 \u0026\u0026 \\\n./configure --prefix=/usr/local/ImageMagick7 --enable-shared  --enable-static --without-perl \u0026\u0026 \\\nmake \u0026\u0026 \\\nmake install \u0026\u0026 \\\ncd .. \u0026\u0026 \\\nrm -rf ImageMagick-7.0.7-35.tar.gz\n```\n\n## Install ImageMagick-6\n\n```\ncd /usr/local/src \u0026\u0026 \\\nwget https://github.com/ImageMagick/ImageMagick6/archive/6.9.9-47.tar.gz -O ImageMagick-6.9.9-47.tar.gz \u0026\u0026 \\\ntar xvzf ImageMagick-6.9.9-47.tar.gz \u0026\u0026 \\\nmv ImageMagick6-6.9.9-47 ImageMagick6 \u0026\u0026 \\\ncd ImageMagick6 \u0026\u0026 \\\n./configure --prefix=/usr/local/ImageMagick6 --enable-shared  --enable-static --without-perl \u0026\u0026 \\\nmake \u0026\u0026 \\\nmake install \u0026\u0026 \\\ncd .. \u0026\u0026 \\\nrm -rf ImageMagick-6.9.9-47.tar.gz\n```\n\n## Usage\n\n### create gif from static images\n\n```elixir\nimages = [\n \"/Users/happy/tmp/a/1.jpg\",\n \"/Users/happy/tmp/a/2.jpg\",\n \"/Users/happy/tmp/a/3.jpg\",\n \"/Users/happy/tmp/a/4.jpg\",\n \"/Users/happy/tmp/a/5.jpg\",\n \"/Users/happy/tmp/a/6.jpg\"\n]\nMelib.Mogrify.create_gif_from images, [\n  path: \"/Users/happy/tmp/b/1.gif\",   # dist path\n  speed: 2\n]\n```\n\nDocumentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)\nand published on [HexDocs](https://hexdocs.pm). Once published, the docs can\nbe found at [https://hexdocs.pm/melib](https://hexdocs.pm/melib).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgialib%2Fmelib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgialib%2Fmelib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgialib%2Fmelib/lists"}