{"id":15099535,"url":"https://github.com/niklus/image-filter","last_synced_at":"2026-02-12T14:32:20.534Z","repository":{"id":57272010,"uuid":"464655485","full_name":"Niklus/image-filter","owner":"Niklus","description":"image filter web component","archived":false,"fork":false,"pushed_at":"2022-02-28T23:58:18.000Z","size":80,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T13:42:11.743Z","etag":null,"topics":["image-filter","webcomponent"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Niklus.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":"2022-02-28T21:50:25.000Z","updated_at":"2022-03-01T00:11:40.000Z","dependencies_parsed_at":"2022-08-25T06:44:34.636Z","dependency_job_id":null,"html_url":"https://github.com/Niklus/image-filter","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Niklus/image-filter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niklus%2Fimage-filter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niklus%2Fimage-filter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niklus%2Fimage-filter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niklus%2Fimage-filter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Niklus","download_url":"https://codeload.github.com/Niklus/image-filter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Niklus%2Fimage-filter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271248836,"owners_count":24726205,"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","status":"online","status_checked_at":"2025-08-19T02:00:09.176Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["image-filter","webcomponent"],"created_at":"2024-09-25T17:23:03.677Z","updated_at":"2026-02-12T14:32:20.508Z","avatar_url":"https://github.com/Niklus.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Built With Stencil](https://img.shields.io/badge/-Built%20With%20Stencil-16161d.svg?logo=data%3Aimage%2Fsvg%2Bxml%3Bbase64%2CPD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE5LjIuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MTIgNTEyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA1MTIgNTEyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI%2BCjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI%2BCgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU%2BCjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MjQuNywzNzMuOWMwLDM3LjYtNTUuMSw2OC42LTkyLjcsNjguNkgxODAuNGMtMzcuOSwwLTkyLjctMzAuNy05Mi43LTY4LjZ2LTMuNmgzMzYuOVYzNzMuOXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTQyNC43LDI5Mi4xSDE4MC40Yy0zNy42LDAtOTIuNy0zMS05Mi43LTY4LjZ2LTMuNkgzMzJjMzcuNiwwLDkyLjcsMzEsOTIuNyw2OC42VjI5Mi4xeiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNDI0LjcsMTQxLjdIODcuN3YtMy42YzAtMzcuNiw1NC44LTY4LjYsOTIuNy02OC42SDMzMmMzNy45LDAsOTIuNywzMC43LDkyLjcsNjguNlYxNDEuN3oiLz4KPC9zdmc%2BCg%3D%3D\u0026colorA=16161d\u0026style=flat-square)\n\n# image-filter web component\n\nThis is a web component for applying different filters to your image.\n\n## Using this component\n\n### Add the following script tag in the head of your .html page\n\n```html\n\u003cscript type=\"module\" src=\"https://unpkg.com/image-filter-component@0.0.2/dist/image-filter/image-filter.esm.js\"\u003e\u003c/script\u003e\n```\n\n### Then in your html or jsx\n\n\u003c!-- prettier-ignore --\u003e\n```html\n  \u003cimage-filter \n    src=\"beach-time.jpg\" \n    alt=\"Children at the beach\" \n    width=\"500\" \n    filter=\"sepia\"\u003e\u003c/image-filter\u003e\n```\n\n## API\n\n### image-filter properties\n\n- src (string)\n- alt (string)\n- width (string)\n- height (string)\n- class (string) : allows you to apply your own styles\n- filter (string) : supported values shown below\n\n### Supported Filter Values\n\n- sepia\n- invert\n- grayscale\n- blur\n- contrast\n- saturate\n- huerotate\n- shadow\n- opacity\n\n### Demo\n\n- Look at the [DEMO](https://niklus.github.io/image-filter-demo/) and see the different styles applied\n\n### Script tag\n\n- Put a script tag similar to this `\u003cscript type='module' src='https://unpkg.com/image-filter-component@0.0.2/dist/image-filter/image-filter.esm.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n- Remember to add type=\"module\" on your script tag as shown above\n\n### Node Modules\n\n- Run `npm install image-filter-component --save`\n- Put a script tag similar to this `\u003cscript type='module' src='node_modules/image-filter-component/dist/image-filter/image-filter.esm.js'\u003e\u003c/script\u003e` in the head of your index.html\n- Then you can use the element anywhere in your template, JSX, html etc\n- Remember to add type=\"module\" on your script tag as shown above\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklus%2Fimage-filter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fniklus%2Fimage-filter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fniklus%2Fimage-filter/lists"}