{"id":18366253,"url":"https://github.com/pydicom/pylibjpeg-libjpeg","last_synced_at":"2026-03-07T06:07:54.227Z","repository":{"id":39615347,"uuid":"245721488","full_name":"pydicom/pylibjpeg-libjpeg","owner":"pydicom","description":"A JPEG, JPEG-LS and JPEG XT plugin for pylibjpeg","archived":false,"fork":false,"pushed_at":"2026-01-02T06:30:31.000Z","size":404,"stargazers_count":16,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-01-08T02:13:32.499Z","etag":null,"topics":["decoding","dicom","jpeg","jpeg-ls","jpeg-xt","libjpeg","pydicom","pylibjpeg","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pydicom.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-03-07T23:34:11.000Z","updated_at":"2026-01-02T06:30:33.000Z","dependencies_parsed_at":"2024-06-17T03:49:16.554Z","dependency_job_id":"2ac75414-90f2-4928-a121-9e840b3d8f57","html_url":"https://github.com/pydicom/pylibjpeg-libjpeg","commit_stats":{"total_commits":35,"total_committers":4,"mean_commits":8.75,"dds":"0.17142857142857137","last_synced_commit":"0378f4d11cd7f68af1a49d95e30351a3840eba01"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/pydicom/pylibjpeg-libjpeg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pydicom%2Fpylibjpeg-libjpeg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pydicom%2Fpylibjpeg-libjpeg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pydicom%2Fpylibjpeg-libjpeg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pydicom%2Fpylibjpeg-libjpeg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pydicom","download_url":"https://codeload.github.com/pydicom/pylibjpeg-libjpeg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pydicom%2Fpylibjpeg-libjpeg/sbom","scorecard":{"id":751282,"data":{"date":"2025-08-11","repo":{"name":"github.com/pydicom/pylibjpeg-libjpeg","commit":"6b2453e0f93ded8c9c89694c78d295a6512859eb"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.2,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 1/21 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/pytest-builds.yml:1","Warn: no topLevel permission defined: .github/workflows/release-wheels.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:56: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/pytest-builds.yml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/pytest-builds.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:135: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:141: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:145: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:168: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:198: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:202: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:219: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:290: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:296: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release-wheels.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/pydicom/pylibjpeg-libjpeg/release-wheels.yml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:68","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:69","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:70","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:71","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:79","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:104","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:105","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:106","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:107","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:115","Warn: pipCommand not pinned by hash: .github/workflows/pytest-builds.yml:123","Warn: pipCommand not pinned by hash: .github/workflows/release-wheels.yml:27","Warn: pipCommand not pinned by hash: .github/workflows/release-wheels.yml:28","Warn: pipCommand not pinned by hash: .github/workflows/release-wheels.yml:152","Warn: pipCommand not pinned by hash: .github/workflows/release-wheels.yml:153","Warn: pipCommand not pinned by hash: .github/workflows/release-wheels.yml:209","Info:   0 out of  16 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   3 third-party GitHubAction dependencies pinned","Info:   0 out of  16 pipCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release-wheels.yml:277"],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 28 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-22T20:27:58.520Z","repository_id":39615347,"created_at":"2025-08-22T20:27:58.520Z","updated_at":"2025-08-22T20:27:58.520Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30208826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: 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":["decoding","dicom","jpeg","jpeg-ls","jpeg-xt","libjpeg","pydicom","pylibjpeg","python"],"created_at":"2024-11-05T23:16:55.333Z","updated_at":"2026-03-07T06:07:54.183Z","avatar_url":"https://github.com/pydicom.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/pydicom/pylibjpeg-libjpeg/actions?query=workflow%3Aunit-tests\"\u003e\u003cimg alt=\"Build status\" src=\"https://github.com/pydicom/pylibjpeg-libjpeg/workflows/unit-tests/badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://codecov.io/gh/pydicom/pylibjpeg-libjpeg\"\u003e\u003cimg alt=\"Test coverage\" src=\"https://codecov.io/gh/pydicom/pylibjpeg-libjpeg/branch/main/graph/badge.svg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://pypi.org/project/pylibjpeg-libjpeg/\"\u003e\u003cimg alt=\"PyPI versions\" src=\"https://img.shields.io/pypi/v/pylibjpeg-libjpeg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://www.python.org/\"\u003e\u003cimg alt=\"Python versions\" src=\"https://img.shields.io/pypi/pyversions/pylibjpeg-libjpeg\"\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/psf/black\"\u003e\u003cimg alt=\"Code style: black\" src=\"https://img.shields.io/badge/code%20style-black-000000.svg\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## pylibjpeg-libjpeg\n\nA Python 3.8+ wrapper for Thomas Richter's\n[libjpeg](https://github.com/thorfdbg/libjpeg), with a focus on use as a\nplugin for [pylibjpeg](http://github.com/pydicom/pylibjpeg).\n\nLinux, MacOS and Windows are all supported.\n\n### Installation\n#### Dependencies\n[NumPy](http://numpy.org)\n\n#### Installing the current release\n```bash\npip install pylibjpeg-libjpeg\n```\n#### Installing the development version\n\nMake sure [Python](https://www.python.org/) and [Git](https://git-scm.com/) are installed. For Windows, you also need to install\n[Microsoft's C++ Build Tools](https://visualstudio.microsoft.com/thank-you-downloading-visual-studio/?sku=BuildTools\u0026rel=16).\n```bash\ngit clone --recurse-submodules https://github.com/pydicom/pylibjpeg-libjpeg\npython -m pip install pylibjpeg-libjpeg\n```\n\n### Supported JPEG Formats\n#### Decoding\n\n| ISO/IEC Standard | ITU Equivalent | JPEG Format |\n| --- | --- | --- |\n| [10918](https://www.iso.org/standard/18902.html) | [T.81](https://www.itu.int/rec/T-REC-T.81/en) | [JPEG](https://jpeg.org/jpeg/index.html)    |\n| [14495](https://www.iso.org/standard/22397.html)   | [T.87](https://www.itu.int/rec/T-REC-T.87/en) | [JPEG-LS](https://jpeg.org/jpegls/index.html) |\n| [18477](https://www.iso.org/standard/62552.html)   | | [JPEG XT](https://jpeg.org/jpegxt/) |\n\n#### Encoding\nEncoding of JPEG images is not currently supported\n\n### Supported Transfer Syntaxes\n#### Decoding\n| UID | Description |\n| --- | --- |\n| 1.2.840.10008.1.2.4.50 | JPEG Baseline (Process 1) |\n| 1.2.840.10008.1.2.4.51 | JPEG Extended (Process 2 and 4) |\n| 1.2.840.10008.1.2.4.57 | JPEG Lossless, Non-Hierarchical (Process 14) |\n| 1.2.840.10008.1.2.4.70 | JPEG Lossless, Non-Hierarchical, First-Order Prediction (Process 14 [Selection Value 1]) |\n| 1.2.840.10008.1.2.4.80 | JPEG-LS Lossless |\n| 1.2.840.10008.1.2.4.81 | JPEG-LS Lossy (Near-Lossless) Image Compression |\n\n### Usage\n#### With pylibjpeg and pydicom\n\n```python\nfrom pydicom import dcmread\nfrom pydicom.data import get_testdata_file\n\nds = dcmread(get_testdata_file('JPEG-LL.dcm'))\narr = ds.pixel_array\n```\n\n#### Standalone JPEG decoding\n\nYou can also decode JPEG images to a [numpy ndarray][1]:\n\n[1]: https://docs.scipy.org/doc/numpy/reference/generated/numpy.ndarray.html\n\n```python\nfrom libjpeg import decode\n\nwith open('filename.jpg', 'rb') as f:\n    # Returns a numpy array\n    arr = decode(f.read())\n\n# Or simply...\narr = decode('filename.jpg')\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpydicom%2Fpylibjpeg-libjpeg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpydicom%2Fpylibjpeg-libjpeg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpydicom%2Fpylibjpeg-libjpeg/lists"}