{"id":19093406,"url":"https://github.com/imagej/imagej-node","last_synced_at":"2025-04-30T12:44:17.254Z","repository":{"id":32439159,"uuid":"133871764","full_name":"imagej/imagej-node","owner":"imagej","description":"ImageJ module for node.js","archived":false,"fork":false,"pushed_at":"2023-04-12T14:04:31.000Z","size":33,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":12,"default_branch":"master","last_synced_at":"2025-04-19T02:23:15.238Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imagej.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":"2018-05-17T21:46:53.000Z","updated_at":"2024-08-02T02:21:23.000Z","dependencies_parsed_at":"2024-11-09T03:26:37.788Z","dependency_job_id":"170afa31-d583-46b1-b676-bb28af23c286","html_url":"https://github.com/imagej/imagej-node","commit_stats":{"total_commits":13,"total_committers":3,"mean_commits":4.333333333333333,"dds":"0.23076923076923073","last_synced_commit":"2b5e2998923708cbe4c62380a987b27a78d6fe9d"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fimagej-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fimagej-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fimagej-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imagej%2Fimagej-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imagej","download_url":"https://codeload.github.com/imagej/imagej-node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251703019,"owners_count":21630146,"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":[],"created_at":"2024-11-09T03:24:31.546Z","updated_at":"2025-04-30T12:44:17.227Z","avatar_url":"https://github.com/imagej.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Node.js module for ImageJ\n\nDo you want to embed [ImageJ](https://imagej.net/) in your node.js application?\nWell then, today is your lucky day!\n\n## Installation\n\n```\nnpm install imagej\n```\n\n## Usage\n\n```javascript\nconfig = {}\nconfig.imagej_dir = '/path/to/Fiji.app'\nconfig.headless = true // Unless you want the GUI.\nconsole.log('==\u003e Starting ImageJ')\nvar imagej = require('imagej')(config)\nimagej.on('ready', function(ij) {\n  ij.log().info('==\u003e ImageJ is ready to go.')\n  dataset = ij.io().open('/path/to/myImage.tif')\n  filtered = ij.op().run('filter.gauss', dataset, [8, 10, 1])\n  ij.scifio().datasetIO().save(filtered, '/path/to/outputImage.png')\n  ij.context().dispose()\n})\n```\n\n## Examples\n\n```\nnode examples/versions.js\nnode examples/gauss-filter.js\n```\n\nThey assume you've set the `IMAGEJ_DIR` environment variable\nto an [ImageJ2](https://imagej.net/ImageJ2) installation.\nThe easiest way to get ImageJ2 is to install [Fiji](https://fiji.sc/).\n\n## Troubleshooting\n\n*   __If the ImageJ startup hangs on macOS__, you may have been bit by the dreaded\n    AWT main thread issue. Try setting `config.headless = true` in the `config`\n    object you pass to the imagej initialization function.\n\n    For further details, see\n    [this article](http://mirror.informatimago.com/next/developer.apple.com/technotes/tn2005/tn2147.html#TNTAG40)\n    as well as\n    [joeferner/node-java#21](https://github.com/joeferner/node-java/issues/21).\n\n*   __If `npm install` fails on macOS__, you may have an issue with Python\n    configuration. The `java` module used by `imagej` requires native compilation\n    via `node-gyp`, which uses Python 2 (not 3!) internally. Try this:\n    ```\n    npm config set python /usr/bin/python\n    export PATH=/usr/bin:$PATH\n    ```\n    And then `npm install` again.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagej%2Fimagej-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimagej%2Fimagej-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimagej%2Fimagej-node/lists"}