{"id":23165233,"url":"https://github.com/blackshadowsoftwareltd/blur_hash","last_synced_at":"2025-05-12T16:41:33.250Z","repository":{"id":219925639,"uuid":"750273170","full_name":"blackshadowsoftwareltd/blur_hash","owner":"blackshadowsoftwareltd","description":"Blur Hash Example","archived":false,"fork":false,"pushed_at":"2024-01-30T10:59:34.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T00:39:09.260Z","etag":null,"topics":["blur","blur-image","blurhash","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/blackshadowsoftwareltd.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}},"created_at":"2024-01-30T10:24:38.000Z","updated_at":"2024-05-21T05:27:54.000Z","dependencies_parsed_at":"2024-01-30T12:34:56.167Z","dependency_job_id":null,"html_url":"https://github.com/blackshadowsoftwareltd/blur_hash","commit_stats":null,"previous_names":["blackshadowsoftwareltd/blur_hash"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackshadowsoftwareltd%2Fblur_hash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackshadowsoftwareltd%2Fblur_hash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackshadowsoftwareltd%2Fblur_hash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blackshadowsoftwareltd%2Fblur_hash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blackshadowsoftwareltd","download_url":"https://codeload.github.com/blackshadowsoftwareltd/blur_hash/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253778196,"owners_count":21962824,"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":["blur","blur-image","blurhash","rust","rust-lang"],"created_at":"2024-12-18T01:16:01.345Z","updated_at":"2025-05-12T16:41:33.207Z","avatar_url":"https://github.com/blackshadowsoftwareltd.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Blur Hash\n\n## Dimensions Calculation\n\n- `\u003e` `pixels` will be `min` and `max` will be calculated\n\n- `\u003c` `pixels` will be `max` and `min` will be calculated\n\n```rust\nfn dimensions(w: u32, h: u32) -\u003e (u32, u32) {\n    let pixels = 50; // ? 50 pixels\n \n    let result = if w \u003e h {\n        let ratio = (w as f32) / (h as f32);\n        ((pixels as f32 * ratio) as u32, pixels)\n    } else {\n        let ratio = (h as f32) / (w as f32);\n        (pixels, (pixels as f32 * ratio) as u32)\n    };\n    result\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackshadowsoftwareltd%2Fblur_hash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblackshadowsoftwareltd%2Fblur_hash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblackshadowsoftwareltd%2Fblur_hash/lists"}