{"id":15361568,"url":"https://github.com/jonathanong/identify","last_synced_at":"2026-01-21T07:26:10.731Z","repository":{"id":38963860,"uuid":"316929361","full_name":"jonathanong/identify","owner":"jonathanong","description":"Image identification service with Vips via Sharp support falling back to ImageMagick","archived":false,"fork":false,"pushed_at":"2024-06-16T16:10:37.000Z","size":191,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-22T07:16:51.549Z","etag":null,"topics":["imagemagick","libvips","vips"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jonathanong.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-29T10:48:47.000Z","updated_at":"2024-08-12T06:33:40.000Z","dependencies_parsed_at":"2024-10-16T05:20:37.018Z","dependency_job_id":"fcc8c0a3-7a81-43f8-bfc3-a3e9db8a5de0","html_url":"https://github.com/jonathanong/identify","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":0.1578947368421053,"last_synced_commit":"a25fa46040e18a3abd7b1ef032b0caed855a65f7"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jonathanong/identify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanong%2Fidentify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanong%2Fidentify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanong%2Fidentify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanong%2Fidentify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonathanong","download_url":"https://codeload.github.com/jonathanong/identify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonathanong%2Fidentify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28629915,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-21T04:47:28.174Z","status":"ssl_error","status_checked_at":"2026-01-21T04:47:22.943Z","response_time":86,"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":["imagemagick","libvips","vips"],"created_at":"2024-10-01T12:55:39.624Z","updated_at":"2026-01-21T07:26:10.715Z","avatar_url":"https://github.com/jonathanong.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @jongleberry/identify\n\n[![Node.js CI](https://github.com/jonathanong/identify/workflows/Node.js%20CI/badge.svg?branch=master)](https://github.com/jonathanong/identify/actions?query=workflow%3A%22Node.js+CI%22+branch%3Amaster+event%3Apush)\n[![codecov](https://codecov.io/gh/jonathanong/identify/branch/master/graph/badge.svg?token=5wtDORuxKg)](https://codecov.io/gh/jonathanong/identify)\n\nA tiny image identification service:\n\n- Uses `libvips` via `sharp` if available\n- Falls back to ImageMagick\n- Errors if neither exist\n\n## API\n\n```js\nconst IdentifyService = require('@jongleberry/identify')\n\nconst identifyService = new IdentifyService({\n  // defaults, no need to set these\n  sharp: true,\n  imagemagick: true, \n})\n\nconst filename = 'some-image.png'\n\ntry {\n  const result = await identifyService.identify(filename)\n  // ['imagemagick', {}]\n  // ['sharp', {}]\n\n  const metadata = await identifyService.normalize(result)\n  // { width, height, ... }\n} catch (err) {\n  if (identifyService.isNotAnImageError(err)) throw new Error(`${filename} is not an image.`)\n  throw err\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanong%2Fidentify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonathanong%2Fidentify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonathanong%2Fidentify/lists"}