{"id":23675045,"url":"https://github.com/zzwx/gamutmask","last_synced_at":"2025-12-24T12:30:12.611Z","repository":{"id":144203273,"uuid":"114505460","full_name":"zzwx/gamutmask","owner":"zzwx","description":"Gamut mask tools implemented in golang","archived":false,"fork":false,"pushed_at":"2019-11-09T00:54:34.000Z","size":37,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-29T13:39:39.925Z","etag":null,"topics":["gamut","golang","image-processing"],"latest_commit_sha":null,"homepage":"","language":"Go","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/zzwx.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}},"created_at":"2017-12-17T03:03:17.000Z","updated_at":"2019-11-09T00:53:38.000Z","dependencies_parsed_at":"2023-06-18T23:27:48.011Z","dependency_job_id":null,"html_url":"https://github.com/zzwx/gamutmask","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzwx%2Fgamutmask","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzwx%2Fgamutmask/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzwx%2Fgamutmask/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzwx%2Fgamutmask/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzwx","download_url":"https://codeload.github.com/zzwx/gamutmask/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239708990,"owners_count":19684165,"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":["gamut","golang","image-processing"],"created_at":"2024-12-29T13:39:13.870Z","updated_at":"2025-12-24T12:30:12.548Z","avatar_url":"https://github.com/zzwx.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Gamut Mask Tools\n\n## Purpose\n\nGenerating gamutmask images from existing image files like this (width/height=250, paddingX/paddingY=2)\n\n![(Van Gogh Starry Night)](https://user-images.githubusercontent.com/8169082/56171963-5c135180-5fb5-11e9-9b77-b50144c41fac.png)\n\n\u003e Van Gogh Starry Night\n\nGamutmask tool once executed generates gamutmask images for every image found in the `input` folder. By default it runs until stopped thus monitoring for updated or added files.\n\nTo run only once:\n```\n$ gamutmask -once\n```\n\nTo run recursively:\n```\n$ gamutmask -recursive\n```\n\nTo modify output folder by passing ``-output`` parameter:\n\n```\n$ gamutmask -output ./output\n```\n\nThe tool monitors the `./_input` folder for images unless requested to do it `once`. The folder can also be changed by passing a value for `-intput` parameter:\n\n```\n$ gamutmask -input ./input\n```\n\nFor help issue\n```\n$ gamutmask help\n```\n\nCommand line also supports the following parameters:\n* `width`\n* `height`\n* `paddingX`\n* `paddingY`\n\n## Full Help\n\n```\n  -height int\n        Height of the resulting gamut image (default 250)\n  -help\n        Print this help\n  -input string\n        Folder name where input files are located (default \"./_input\")\n  -monitor\n        Monitor input folder for new and updated files (default true)\n  -once\n        Shortuct to monitor=false\n  -output string\n        Folder name where output files should be saved (default \"./_output\")\n  -paddingX int\n        Widgth of the resulting gamut image (default 2)\n  -paddingY int\n        Widgth of the resulting gamut image (default 2)\n  -recursive\n        Walk all subfolders of the input folder too recursively\n  -width int\n        Widgth of the resulting gamut image (default 250)\n```\n\n## Usage as a Library\n\nOne can `/lib` submodule containing the core function itself inside their own project:\n\n```\nfunc GenerateGamutMask(img image.Image, maskWidth, maskHeight int) (wheel *image.RGBA64)\n```\n\nas well as `ProcessChangedFilesOnly` function in order to process sets of files some different way.\n\n## Requirement\n\n* go 1.13 (for error unwrapping)\n\n## To Build and Install From Source\n\nTo resolve dependency tree, simply:\n\n```\n$ go mod verify\n$ go build\n```\n\nTo install to golang path bin:\n\n```\n$ go install\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzwx%2Fgamutmask","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzwx%2Fgamutmask","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzwx%2Fgamutmask/lists"}