{"id":37110492,"url":"https://github.com/fkleon/fooocus-metadata","last_synced_at":"2026-01-14T13:08:23.383Z","repository":{"id":288418554,"uuid":"964555724","full_name":"fkleon/fooocus-metadata","owner":"fkleon","description":"A go package for reading and writing Fooocus metadata","archived":false,"fork":false,"pushed_at":"2025-10-06T09:46:51.000Z","size":5141,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-13T00:29:32.864Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fkleon.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":"2025-04-11T11:59:55.000Z","updated_at":"2025-10-06T09:46:55.000Z","dependencies_parsed_at":"2025-04-18T01:52:47.669Z","dependency_job_id":"8e8c96a8-14c1-4be6-8f68-affda68e1001","html_url":"https://github.com/fkleon/fooocus-metadata","commit_stats":null,"previous_names":["fkleon/fooocus-metadata"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/fkleon/fooocus-metadata","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Ffooocus-metadata","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Ffooocus-metadata/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Ffooocus-metadata/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Ffooocus-metadata/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fkleon","download_url":"https://codeload.github.com/fkleon/fooocus-metadata/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fkleon%2Ffooocus-metadata/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28420818,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"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":[],"created_at":"2026-01-14T13:08:22.779Z","updated_at":"2026-01-14T13:08:23.368Z","avatar_url":"https://github.com/fkleon.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `fooocus-metadata`\n\nA Go library for reading and writing image generation parameters for images produced by [Fooocus and various forks](#compatibility).\n\n## Features\n\n- Read embedded metadata (PNG, EXIF) for image files generated by Fooocus.\n- Read metadata from the [Private Log file](https://github.com/lllyasviel/Fooocus/discussions/160) as fallback if metadata was not embedded into the original file.\n- Write metadata to PNG, which can be loaded into Fooocus through `Input Image \u003e Metadata`.\n\n## Usage\n\nThis library is intended to be used programmatically. It includes a [command line tool](./cmd/extract/main.go) to read metadata from a file, which serves as a usage example.\n\n## Compatibility\n\n### [Fooocus]\n\nTested with Fooocus version 2.1 and newer.\n\nFooocus supports two metadata schemes:\n\n- `fooocus` (json) - the native scheme.\n- `a1111` (plain text) - for compatibility with Civitai.\n\nThis library fully supports the native `fooocus` scheme.\n\nPartial support for reading the `a1111` scheme is provided by the generic A1111-style metadata parser, but it does not support any Fooocus-specific keys.\n\n| Image Format   | Metadata Location      | Metadata Scheme | Read | Write |\n|----------------|------------------------|-----------------|------|-------|\n| PNG            | Embedded               | `fooocus`       | ✅   | ✅    |\n| JPG, WEBP      | Embedded               | `fooocus`       | ✅   | ❌    |\n| *              | Embedded               | `a1111`         | ⚠️    | ❌    |\n| PNG, JPG, WEBP | External (Private Log) | `fooocus`       | ✅   | ❌    |\n\n### [FooocusPlus]\n\nTested with FooocusPlus version 1.0.0 and newer.\n\n| Image Format   | Metadata Location      | Metadata Scheme | Read | Write |\n|----------------|------------------------|-----------------|------|-------|\n| PNG            | Embedded               | JSON            | ✅   | ✅    |\n| JPG, WEBP      | Embedded               | JSON            | ✅   | ❌    |\n| PNG, JPG, WEBP | External (Private Log) | JSON            | ✅   | ❌    |\n\n### [RuinedFooocus]\n\nTested with RuinedFooocus version 2.0.0 and newer.\n\n| Image Format | Metadata Location | Metadata Scheme | Read | Write |\n|--------------|-------------------|-----------------|------|-------|\n| PNG          | Embedded          | JSON            | ✅   | ✅    |\n\n### AUTOMATIC1111-style metadata\n\nBasic read-only support for metadata encoded in `a1111` (plain text) format. Unsupported keys are ignored.\n\nTested with:\n\n* [stable-diffusion-webui]\n* [stable-diffusion.cpp]\n\n| Image Format    | Metadata Location | Metadata Scheme | Read | Write |\n|-----------------|-------------------|-----------------|------|-------|\n| PNG, JPEG, WEBP | Embedded          | `a1111`         | ✅   | ❌    |\n\n\n[Fooocus]: https://github.com/lllyasviel/Fooocus\n[FooocusPlus]: https://github.com/DavidDragonsage/FooocusPlus\n[RuinedFooocus]: https://github.com/runew0lf/RuinedFooocus\n[stable-diffusion.cpp]: https://github.com/leejet/stable-diffusion.cpp\n[stable-diffusion-webui]: https://github.com/AUTOMATIC1111/stable-diffusion-webui","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkleon%2Ffooocus-metadata","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffkleon%2Ffooocus-metadata","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffkleon%2Ffooocus-metadata/lists"}