{"id":19671223,"url":"https://github.com/cgohlke/psdtags","last_synced_at":"2026-01-29T19:17:25.238Z","repository":{"id":62578195,"uuid":"448150871","full_name":"cgohlke/psdtags","owner":"cgohlke","description":"Read and write layered TIFF ImageSourceData and ImageResources tags.","archived":false,"fork":false,"pushed_at":"2025-12-11T21:22:03.000Z","size":548,"stargazers_count":27,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-12-13T02:00:03.690Z","etag":null,"topics":["format-reader","photoshop","psd","python","tiff"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/psdtags","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cgohlke.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","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":"2022-01-15T01:14:15.000Z","updated_at":"2025-12-11T21:22:08.000Z","dependencies_parsed_at":"2023-11-14T16:38:51.714Z","dependency_job_id":"1b795362-4c2b-4e1a-8e02-9caeab15b2c8","html_url":"https://github.com/cgohlke/psdtags","commit_stats":{"total_commits":31,"total_committers":2,"mean_commits":15.5,"dds":0.4838709677419355,"last_synced_commit":"b2af7e056c818649a671085a72f8f7ad95e5e5dc"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/cgohlke/psdtags","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgohlke%2Fpsdtags","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgohlke%2Fpsdtags/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgohlke%2Fpsdtags/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgohlke%2Fpsdtags/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cgohlke","download_url":"https://codeload.github.com/cgohlke/psdtags/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cgohlke%2Fpsdtags/sbom","scorecard":{"id":272523,"data":{"date":"2025-08-11","repo":{"name":"github.com/cgohlke/psdtags","commit":"41cbfd26b9651666d8933ec00741f96541d2fe5d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/30 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":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"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":"Maintained","score":0,"reason":"0 commit(s) and 1 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":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"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":"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":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"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":-1,"reason":"no workflows found","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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"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":"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":"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: BSD 3-Clause \"New\" or \"Revised\" License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact v2025.5.10 not signed: https://api.github.com/repos/cgohlke/psdtags/releases/217798134","Warn: release artifact v2025.1.1 not signed: https://api.github.com/repos/cgohlke/psdtags/releases/192874031","Warn: release artifact v2024.5.24 not signed: https://api.github.com/repos/cgohlke/psdtags/releases/157199024","Warn: release artifact v2024.2.22 not signed: https://api.github.com/repos/cgohlke/psdtags/releases/143265974","Warn: release artifact v2024.1.15 not signed: https://api.github.com/repos/cgohlke/psdtags/releases/137123058","Warn: release artifact v2025.5.10 does not have provenance: https://api.github.com/repos/cgohlke/psdtags/releases/217798134","Warn: release artifact v2025.1.1 does not have provenance: https://api.github.com/repos/cgohlke/psdtags/releases/192874031","Warn: release artifact v2024.5.24 does not have provenance: https://api.github.com/repos/cgohlke/psdtags/releases/157199024","Warn: release artifact v2024.2.22 does not have provenance: https://api.github.com/repos/cgohlke/psdtags/releases/143265974","Warn: release artifact v2024.1.15 does not have provenance: https://api.github.com/repos/cgohlke/psdtags/releases/137123058"],"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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-17T13:44:11.817Z","repository_id":62578195,"created_at":"2025-08-17T13:44:11.818Z","updated_at":"2025-08-17T13:44:11.818Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28882981,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T16:41:59.663Z","status":"ssl_error","status_checked_at":"2026-01-29T16:39:39.641Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":["format-reader","photoshop","psd","python","tiff"],"created_at":"2024-11-11T17:08:11.337Z","updated_at":"2026-01-29T19:17:25.232Z","avatar_url":"https://github.com/cgohlke.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"..\n  This file is generated by setup.py\n\nRead and write layered TIFF ImageSourceData and ImageResources tags\n===================================================================\n\nPsdtags is a Python library to read and write the Adobe Photoshop(r) specific\nImageResources (#34377) and ImageSourceData (#37724) TIFF tags, which contain\nimage resource blocks, layer and mask information found in a typical layered\nTIFF file created by Photoshop.\n\nThe format is specified in the\n`Adobe Photoshop TIFF Technical Notes (March 22, 2002)\n\u003chttps://download.osgeo.org/libtiff/doc/TIFFphotoshop.pdf\u003e`_\nand\n`Adobe Photoshop File Formats Specification (November 2019)\n\u003chttps://www.adobe.com/devnet-apps/photoshop/fileformatashtml/\u003e`_.\n\nAdobe Photoshop is a registered trademark of Adobe Systems Inc.\n\n:Author: `Christoph Gohlke \u003chttps://www.cgohlke.com\u003e`_\n:License: BSD-3-Clause\n:Version: 2026.1.29\n:DOI: `10.5281/zenodo.7879187 \u003chttps://doi.org/10.5281/zenodo.7879187\u003e`_\n\nQuickstart\n----------\n\nInstall the psdtags package and all dependencies from the\n`Python Package Index \u003chttps://pypi.org/project/psdtags/\u003e`_::\n\n    python -m pip install -U psdtags[all]\n\nView the layer image and metadata stored in a layered TIFF file::\n\n    python -m psdtags file.tif\n\nSee `Examples`_ for using the programming interface.\n\nSource code, examples, and support are available on\n`GitHub \u003chttps://github.com/cgohlke/psdtags\u003e`_.\n\nRequirements\n------------\n\nThis revision was tested with the following requirements and dependencies\n(other versions may work):\n\n- `CPython \u003chttps://www.python.org\u003e`_ 3.11.9, 3.12.10, 3.13.11, 3.14.2 64-bit\n- `NumPy \u003chttps://pypi.org/project/numpy/\u003e`_ 2.4.1\n- `Imagecodecs \u003chttps://pypi.org/project/imagecodecs/\u003e`_ 2026.1.14\n  (required for compressing/decompressing image data)\n- `Tifffile \u003chttps://pypi.org/project/tifffile/\u003e`_ 2026.1.28\n  (required for reading/writing tags from/to TIFF files)\n- `Matplotlib \u003chttps://pypi.org/project/matplotlib/\u003e`_ 3.10.8\n  (required for plotting)\n\nRevisions\n---------\n\n2026.1.29\n\n- Fix code review issues.\n\n2026.1.8\n\n- Improve code quality.\n\n2025.12.12\n\n- Make boolean and optional parameters keyword-only (breaking).\n\n2025.9.19\n\n- Write MTrn key before layers (#17).\n\n2025.9.15\n\n- Add CAI, GENI, and OCIO keys.\n- Drop support for Python 3.10.\n\n2025.5.10\n\n- Support Python 3.14.\n\n2025.1.1\n\n- …\n\nRefer to the CHANGES file for older revisions.\n\nNotes\n-----\n\nThe API is not stable yet and might change between revisions.\n\nThis library has been tested with a limited number of files only.\n\nAdditional layer information is not yet supported.\n\nConsider `psd-tools \u003chttps://github.com/psd-tools/psd-tools\u003e`_ and\n`pytoshop \u003chttps://github.com/mdboom/pytoshop\u003e`_  for working with\nAdobe Photoshop PSD files.\n\nLayered TIFF files can be read or written by Photoshop, Affinity Photo, and\nKrita.\n\nSee also `Reading and writing a Photoshop TIFF\n\u003chttps://www.amyspark.me/blog/posts/2021/11/14/reading-and-writing-tiff-psds.html\u003e`_.\n\nExamples\n--------\n\nRead the ImageSourceData tag value from a layered TIFF file and iterate over\nall the channels:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e isd = TiffImageSourceData.fromtiff('layered.tif')\n    \u003e\u003e\u003e for layer in isd.layers:\n    ...     layer.name\n    ...     for channel in layer.channels:\n    ...         ch = channel.data  # a numpy array\n    ...\n    'Background'\n    'Reflect1'\n    'Reflect2'\n    'image'\n    'Layer 1'\n    'ORight'\n    'I'\n    'IShadow'\n    'O'\n\nRead the ImageResources tag value from the TIFF file, iterate over the blocks,\nand get the thumbnail image:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e res = TiffImageResources.fromtiff('layered.tif')\n    \u003e\u003e\u003e for block in res.blocks:\n    ...     blockname = block.name\n    ...\n    \u003e\u003e\u003e res.thumbnail().shape\n    (90, 160, 3)\n\nWrite the image, ImageSourceData and ImageResources to a new layered TIFF file:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e from tifffile import imread, imwrite\n    \u003e\u003e\u003e image = imread('layered.tif')\n    \u003e\u003e\u003e imwrite(\n    ...     '_layered.tif',\n    ...     image,\n    ...     byteorder=isd.byteorder,  # must match ImageSourceData\n    ...     photometric='rgb',  # must match ImageSourceData\n    ...     metadata=None,  # do not write any tifffile specific metadata\n    ...     extratags=[isd.tifftag(maxworkers=4), res.tifftag()],\n    ... )\n\nVerify that the new layered TIFF file contains readable ImageSourceData:\n\n.. code-block:: python\n\n    \u003e\u003e\u003e assert isd == TiffImageSourceData.fromtiff('_layered.tif')\n    \u003e\u003e\u003e assert res == TiffImageResources.fromtiff('_layered.tif')\n\nView the layer and mask information as well as the image resource blocks in\na layered TIFF file from a command line::\n\n    python -m psdtags layered.tif\n\nRefer to the `layered_tiff.py` example in the source distribution for\ncreating a layered TIFF file from individual layer images.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgohlke%2Fpsdtags","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcgohlke%2Fpsdtags","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcgohlke%2Fpsdtags/lists"}