{"id":20492043,"url":"https://github.com/zotonic/eblurhash","last_synced_at":"2025-04-13T17:01:33.205Z","repository":{"id":46858582,"uuid":"252829689","full_name":"zotonic/eblurhash","owner":"zotonic","description":"Blurhash in Erlang","archived":false,"fork":false,"pushed_at":"2023-03-05T18:08:44.000Z","size":205,"stargazers_count":11,"open_issues_count":0,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-27T07:51:35.463Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hex.pm/packages/eblurhash","language":"C","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/zotonic.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}},"created_at":"2020-04-03T20:05:22.000Z","updated_at":"2023-10-07T09:27:57.000Z","dependencies_parsed_at":"2022-07-23T10:34:31.466Z","dependency_job_id":null,"html_url":"https://github.com/zotonic/eblurhash","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Feblurhash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Feblurhash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Feblurhash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zotonic%2Feblurhash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zotonic","download_url":"https://codeload.github.com/zotonic/eblurhash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248487670,"owners_count":21112188,"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":[],"created_at":"2024-11-15T17:27:23.710Z","updated_at":"2025-04-13T17:01:33.167Z","avatar_url":"https://github.com/zotonic.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# eblurhash - Blurhash for Erlang\n\nThis is an Erlang version of https://blurha.sh\n\nA _blurhash_ is a compact string with encoded colors to show a blurred version of an image before the image\nitself is loaded.\n\n## With ImageMagick\n\nUse the `magick` function to first let imagemagick resize (and secure) the\nimage, before using the blurhash program to calculate the hash.\n\n```erlang\neblurhash:magick(\"path/to/image.jpg\").\n```\n\nReturn something like:\n\n```erlang\n{ok, \u003c\u003c\"MlMF%n00%#Mwo}S|WCWEM{a$R*bbWBbHfl\"\u003e\u003e}\n```\n\n**Note:** you will need to have ImageMagick installed\n\nThe `magick` command checks the image size and selects optimal X and Y size for the blurhash.\nWhere X and Y are in the range 1..5.\n\nThe command line program `convert` is used to convert the image to a smaller gif file.\nThis gif file is then provided to the `blurhash` program.\n\n## Using `blurhash` directly\n\nThis uses the C version of blurhash on the supplied image file.\n\nThe C version uses `stb_image` to load images, which is not security-hardened, so it\nis **not** recommended to use this version in production on untrusted data!\n\nThe blurhash command needs to have the X and Y arguments provided:\n\n```erlang\neblurhash:hash(5, 3, \"path/to/image.jpg\").\n```\n\nReturns `{ok, \u003c\u003c\"...\"\u003e\u003e}` or `{error, Reason}`.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Feblurhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzotonic%2Feblurhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzotonic%2Feblurhash/lists"}