{"id":28391339,"url":"https://github.com/cornerstonejs/cornerstonewebimageloader","last_synced_at":"2025-12-12T04:33:31.526Z","repository":{"id":398311,"uuid":"18835602","full_name":"cornerstonejs/cornerstoneWebImageLoader","owner":"cornerstonejs","description":"Cornerstone Image Loader for Web Images (PNG, JPEG)","archived":false,"fork":false,"pushed_at":"2023-06-23T02:13:53.000Z","size":2213,"stargazers_count":69,"open_issues_count":29,"forks_count":51,"subscribers_count":24,"default_branch":"master","last_synced_at":"2025-06-10T22:54:14.345Z","etag":null,"topics":["cornerstone","cornerstone-image-loader","javascript","nci-itcr"],"latest_commit_sha":null,"homepage":null,"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/cornerstonejs.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","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}},"created_at":"2014-04-16T10:22:16.000Z","updated_at":"2024-05-13T01:51:47.000Z","dependencies_parsed_at":"2023-07-05T14:47:17.892Z","dependency_job_id":null,"html_url":"https://github.com/cornerstonejs/cornerstoneWebImageLoader","commit_stats":{"total_commits":53,"total_committers":9,"mean_commits":5.888888888888889,"dds":0.6226415094339622,"last_synced_commit":"fd929932fe04231e42b7d3afd271d20832e22e09"},"previous_names":["chafey/cornerstonewebimageloader"],"tags_count":24,"template":false,"template_full_name":null,"purl":"pkg:github/cornerstonejs/cornerstoneWebImageLoader","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerstonejs%2FcornerstoneWebImageLoader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerstonejs%2FcornerstoneWebImageLoader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerstonejs%2FcornerstoneWebImageLoader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerstonejs%2FcornerstoneWebImageLoader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cornerstonejs","download_url":"https://codeload.github.com/cornerstonejs/cornerstoneWebImageLoader/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cornerstonejs%2FcornerstoneWebImageLoader/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261955999,"owners_count":23235993,"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":["cornerstone","cornerstone-image-loader","javascript","nci-itcr"],"created_at":"2025-05-31T09:11:33.890Z","updated_at":"2025-12-12T04:33:31.474Z","avatar_url":"https://github.com/cornerstonejs.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"cornerstone Web Image Loader\n=============================\n\nA cornerstone (legacy) Image Loader for web images (PNG, JPEG) for cornerstone legacy. For cornerstone3D use the new loader [here](https://github.com/cornerstonejs/cornerstone3D-beta/blob/main/packages/core/examples/webLoader/registerWebImageLoader.ts) \n\nLive Examples\n---------------\n\n[Click here for a live example of this library in use!](http://rawgit.com/cornerstonejs/cornerstoneWebImageLoader/master/examples/index.html)\n\nView the [simple image viewer](http://viewer.ohif.org/) built on cornerstone.\n\nInstall\n-------\n\nGet a packaged source file:\n\n* [cornerstoneWebImageLoader.js](https://unpkg.com/browse/cornerstone-web-image-loader/dist/)\n* [cornerstoneWebImageLoader.min.js](https://unpkg.com/browse/cornerstone-web-image-loader/dist/)\n\n\nOr install via [NPM](https://www.npmjs.com/package/cornerstone-web-image-loader):\n\n\u003e npm install cornerstone-web-image-loader\n\nUsage\n-------\n\nSimply include the cornerstoneWebImageLoader.js in your HTML file after you load cornerstone.js and then set the cornerstone instance as an external module for cornerstoneWebImageLoader:\n\n````javascript\ncornerstoneWebImageLoader.external.cornerstone = cornerstone;\n````\n\nThis will let cornerstoneWebImageLoader register itself with cornerstone to load imageId's that have the http or https url schemes. To display an image, pass the url to the image as the imageId parameter to a cornerstone API function loadImage().\n\nKey Features\n------------\n\n* Provides a bridge between the cornerstone library and standard web images\n* Allows XHR to be hooked so custom http headers can be added (e.g. for authentication).  View the source of the\n  [example](http://rawgit.com/cornerstonejs/cornerstoneWebImageLoader/master/examples/index.html) to see how this is done.\n\nContributors\n------------\n@onluiz for fixing a bug with images not being properly invalidated\n@leonardorame for adding support for CornerstoneImageLoadProgress\n\nBuild System\n============\n\nThis project uses webpack to build the software.\n\nPre-requisites:\n---------------\n\nNodeJs - [click to visit web site for installation instructions](http://nodejs.org).\n\nCommon Tasks\n------------\n\nUpdate dependencies (after each pull):\n\u003e npm install\n\nRunning the build:\n\u003e npm start\n\nAutomatically running the build and unit tests after each source change:\n\u003e npm run watch\n\nWhy is this a separate library from cornerstone?\n================================================\n\nCornerstone was designed to support loading of any kind of image regardless of its container,\ncompression algorithm, encoding or transport.  This is one of many possible image loaders\nthat can provide the image pixel data to cornerstone to display\n\nCopyright\n============\nCopyright 2017 Chris Hafey [chafey@gmail.com](mailto:chafey@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornerstonejs%2Fcornerstonewebimageloader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcornerstonejs%2Fcornerstonewebimageloader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcornerstonejs%2Fcornerstonewebimageloader/lists"}