{"id":32418001,"url":"https://github.com/carloe/duotone-swift","last_synced_at":"2025-10-25T16:48:53.776Z","repository":{"id":48896335,"uuid":"272753897","full_name":"carloe/duotone-swift","owner":"carloe","description":"Apply duotone effects to images from the cli using GPU acceleration. ","archived":false,"fork":false,"pushed_at":"2025-02-12T22:51:12.000Z","size":196,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T23:30:31.508Z","etag":null,"topics":["command-line","duotone","image-processing","macos","metal","shaders","swift"],"latest_commit_sha":null,"homepage":"","language":"Swift","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/carloe.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}},"created_at":"2020-06-16T16:07:48.000Z","updated_at":"2025-02-12T22:55:31.000Z","dependencies_parsed_at":"2023-01-22T00:02:08.464Z","dependency_job_id":null,"html_url":"https://github.com/carloe/duotone-swift","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/carloe/duotone-swift","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloe%2Fduotone-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloe%2Fduotone-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloe%2Fduotone-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloe%2Fduotone-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carloe","download_url":"https://codeload.github.com/carloe/duotone-swift/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carloe%2Fduotone-swift/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280987565,"owners_count":26425342,"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","status":"online","status_checked_at":"2025-10-25T02:00:06.499Z","response_time":81,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["command-line","duotone","image-processing","macos","metal","shaders","swift"],"created_at":"2025-10-25T16:48:48.819Z","updated_at":"2025-10-25T16:48:53.769Z","avatar_url":"https://github.com/carloe.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DUOTONE\n\nApply [duotone](https://en.wikipedia.org/wiki/Duotone) effects to images using GPU acceleration. Thanks to the use of Metal it's on average 75 times faster than the original [Python version](https://github.com/carloe/duotone-py).\n\n![Sample](sample.png)\n\n## Install\n\n```bash\ngit clone git@github.com:carloe/duotone-swift.git\ncd duotone\nswift package update\nswift build -c release\ncp -f .build/release/duotone /usr/local/bin/duotone\nduotone --help\n```\n\n## Usage\n\nDuotone individual files or batch process entire folders.\n\n```bash\n# Single Image...\nduotone input.jpg --light '#FFCB00' --dark '#38046C' --out output.png\n\n# Batch processing...\nduotone ~/images --light '#FFCB00' --dark '#38046C' --out ~/images/out\n```\n\n## Presets\n\nSettings can be saved as preset so they can be reused without having to juggle or memorize hex colors.\n\n```bash\n# List all presets\nduotone list\n\n# Add a new preset named 'foo'\nduotone add --preset foo --light '#FFCB00' --dark '#38046C' --contrast 0.5 --blend 0.5\n\n# Remove the preset named foo\nduotone remove --preset foo\n\n# Apply the preset 'foo' to 'file.jpg'\nduotone file.jpg --preset foo --out result.jpg\n```\n\nPresets are saved as JSON, and can also be eddited directly.\n\n```bash\nvim ~/.duotone\n```\n\n```json\n[\n  {\n    \"blend\" : 1,\n    \"light\" : \"#444644\",\n    \"dark\" : \"#1e201e\",\n    \"contrast\" : 0.5,\n    \"name\" : \"spacegray\"\n  }\n]\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloe%2Fduotone-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloe%2Fduotone-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloe%2Fduotone-swift/lists"}