{"id":18936633,"url":"https://github.com/dehbmarques/reimgix","last_synced_at":"2025-04-15T18:31:36.063Z","repository":{"id":57133209,"uuid":"112875642","full_name":"dehbmarques/reimgix","owner":"dehbmarques","description":":city_sunrise: Get all the benefits of Imgix using React. Supports LQIP.","archived":false,"fork":false,"pushed_at":"2018-08-19T17:22:52.000Z","size":80,"stargazers_count":38,"open_issues_count":1,"forks_count":1,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-25T21:22:20.479Z","etag":null,"topics":["imgix","react-component","render-prop"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/dehbmarques.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}},"created_at":"2017-12-02T20:47:33.000Z","updated_at":"2022-11-25T14:04:52.000Z","dependencies_parsed_at":"2022-09-16T08:21:20.517Z","dependency_job_id":null,"html_url":"https://github.com/dehbmarques/reimgix","commit_stats":null,"previous_names":["renatorib/reimgix","one-market/reimgix"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehbmarques%2Freimgix","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehbmarques%2Freimgix/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehbmarques%2Freimgix/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dehbmarques%2Freimgix/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dehbmarques","download_url":"https://codeload.github.com/dehbmarques/reimgix/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249129111,"owners_count":21217288,"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":["imgix","react-component","render-prop"],"created_at":"2024-11-08T12:08:18.472Z","updated_at":"2025-04-15T18:31:31.049Z","avatar_url":"https://github.com/dehbmarques.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![reimgix](./logo.png)\n\n[![npm](https://img.shields.io/npm/v/reimgix.svg?style=flat-square)](https://www.npmjs.com/package/reimgix)\n[![npm](https://img.shields.io/npm/dt/reimgix.svg?style=flat-square)](https://www.npmjs.com/package/reimgix)\n[![GitHub issues](https://img.shields.io/github/issues/one-market/reimgix.svg?style=flat-square)](https://github.com/one-market/reimgix/issues)\n[![GitHub stars](https://img.shields.io/github/stars/one-market/reimgix.svg?style=flat-square)](https://github.com/one-market/reimgix/stargazers)\n[![Twitter](https://img.shields.io/twitter/url/https/github.com/one-market/reimgix.svg?style=social\u0026style=flat-square)](https://twitter.com/intent/tweet?url=https://github.com/one-market/reimgix)\n\n:city_sunrise: React utils to [imgix™](https://www.imgix.com/)\n\n# Usage\n\nGenerate a stringified url with params\n\n```js\nimport { generate } from 'reimgix'\n\nconst url = generate('http://your.site/img.png?fit=clamp', { h: 50 })\n// url = http://your.site/img.png?fit=clamp\u0026h=50\n```\n\n```js\nconst url = generate(\n  'http://your.site/img.png?fit=clamp',\n  { h: 50 },\n  { removeUrlParams: true } // will remove fit=clamp\n)\n// url = http://your.site/img.png?h=50\n```\n\nLqip techinique\n\n\u003c!-- prettier-ignore --\u003e\n```jsx\nimport { Lqip, generate } from 'reimgix'\n\nconst url = generate('http://your.site/bear.png?fit=clamp', { h: 50 })\n\nconst App = () =\u003e (\n  \u003cLqip src={url}\u003e\n    {({ src }) =\u003e (\n      \u003cimg src={src} alt=\"Bear\" /\u003e\n    )}\n  \u003c/Lqip\u003e\n)\n```\n\n```jsx\nimport { Lqip, generate } from 'reimgix'\n\nconst url = generate('http://your.site/bear.png?fit=clamp', { h: 50 })\n\nconst App = () =\u003e (\n  \u003cLqip src={url}\u003e\n    {({ src, loaded }) =\u003e (\n      \u003cdiv\u003e\n        Image below is using {loaded ? 'full version' : 'lqip version'}\n        \u003cimg src={src} alt=\"Bear\" /\u003e\n      \u003c/div\u003e\n    )}\n  \u003c/Lqip\u003e\n)\n```\n\n# Install\n\n### Node Module\n\n```\nyarn add reimgix\n\n# or\n\nnpm i reimgix\n```\n\n### UMD library\n\n```html\n\u003cscript src=\"https://unpkg.com/reimgix/dist/reimgix.min.js\"\u003e\u003c/script\u003e\n```\n\nexposed as `Reimgix`\n\n# Contribute\n\nYou can help improving this project by sending PRs and helping with issues.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehbmarques%2Freimgix","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdehbmarques%2Freimgix","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdehbmarques%2Freimgix/lists"}