{"id":19522217,"url":"https://github.com/captaincodeman/image-compare","last_synced_at":"2026-03-04T10:02:57.931Z","repository":{"id":66357889,"uuid":"70596288","full_name":"CaptainCodeman/image-compare","owner":"CaptainCodeman","description":"Image comparison element","archived":false,"fork":false,"pushed_at":"2016-10-11T14:03:27.000Z","size":3016,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-07T04:37:48.260Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://captaincodeman.github.io/image-compare/","language":"HTML","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/CaptainCodeman.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":"2016-10-11T13:29:41.000Z","updated_at":"2019-03-19T23:15:36.000Z","dependencies_parsed_at":"2023-02-23T04:15:59.293Z","dependency_job_id":null,"html_url":"https://github.com/CaptainCodeman/image-compare","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/CaptainCodeman/image-compare","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fimage-compare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fimage-compare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fimage-compare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fimage-compare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CaptainCodeman","download_url":"https://codeload.github.com/CaptainCodeman/image-compare/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CaptainCodeman%2Fimage-compare/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30078307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T08:01:56.766Z","status":"ssl_error","status_checked_at":"2026-03-04T08:00:42.919Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2024-11-11T00:37:48.883Z","updated_at":"2026-03-04T10:02:52.915Z","avatar_url":"https://github.com/CaptainCodeman.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"_[Demo and API docs](http://captaincodeman.github.io/image-compare/)_\n\n##\u0026lt;image-compare\u0026gt;\n\n`image-compare` enables visual comparison of images by swiping between them.\n\n**Status**: *Experimental / Work in progress, likely only works in Chrome*\n\nUnlike most other image comparison libraries which simply provide a before and\nafter comparison, this was designed for comparing images in detail (specifically\nas a visual aid while working on an upload component that provides image resizing,\nsharpening, and re-encoding as Jpeg or WePp). It allows zooming and scrolling so\nthat areas of an image can be compared in detail and smoothing is disabled to the\npixel-level differences between them can be clearly examined.\n\nBoth images are also loaded using `\u003cimg\u003e` elements instead of a `background-image`\nof a `\u003cdiv\u003e` to avoid the flickering that the latter introduced when viewing large\nimages.\n\nExample of use:\n\n    \u003cimage-compare src=\"original.jpg\" with=\"replacement.jpg\"\u003e\u003c/image-compare\u003e\n\nNOTE: Both images should be the same dimensions.\n\nSource images / some styling based on [this article](https://codyhouse.co/gem/css-jquery-image-comparison-slider/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fimage-compare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcaptaincodeman%2Fimage-compare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcaptaincodeman%2Fimage-compare/lists"}