{"id":22180669,"url":"https://github.com/jftuga/photo_id_resizer","last_synced_at":"2025-07-26T17:32:27.531Z","repository":{"id":64302707,"uuid":"316278573","full_name":"jftuga/photo_id_resizer","owner":"jftuga","description":"Resize photo ID images using face recognition technology","archived":false,"fork":false,"pushed_at":"2020-12-07T14:01:19.000Z","size":256,"stargazers_count":12,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-06-20T10:06:22.967Z","etag":null,"topics":["batch-processing","face-detection","face-recognition","golang","image-processing","photos","profile-picture"],"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/jftuga.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-11-26T16:04:54.000Z","updated_at":"2024-05-05T20:26:43.000Z","dependencies_parsed_at":"2023-01-15T09:45:17.148Z","dependency_job_id":null,"html_url":"https://github.com/jftuga/photo_id_resizer","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fphoto_id_resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fphoto_id_resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fphoto_id_resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jftuga%2Fphoto_id_resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jftuga","download_url":"https://codeload.github.com/jftuga/photo_id_resizer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227700373,"owners_count":17806365,"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":["batch-processing","face-detection","face-recognition","golang","image-processing","photos","profile-picture"],"created_at":"2024-12-02T09:19:04.763Z","updated_at":"2024-12-02T09:19:14.299Z","avatar_url":"https://github.com/jftuga.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# photo_id_resizer\nResize photo ID images using face recognition technology.\n\nBinaries for Windows, MacOS, and Linux can be found on the [Releases Page](https://github.com/jftuga/photo_id_resizer/releases).\n\n**Description**\n\nThe program is used to resize large photo ID images which reside in a `source` directory and save them into a different\n`destination` directory.  If an image file does not need to be resized (eg it is already smaller than `max height`), then the\nfile is simply copied from the `source` directory to the `destination` directory.  When image resizing occurs, this [content aware image resizing library](https://github.com/esimov/caire) is used with its face detection algorithm to avoid face deformation.\n\n**Usage**\n\n```\n\nphoto_id_resizer.exe: resize photo ID image files\n\n  -a int\n    \tskip files older than X number of days. Ex: 0=do not skip any, 7=skip files older than a week\n  -d string\n    \tdestination directory\n  -f string\n    \tpath to 'facefinder' classification file (default: \"facefinder\")\n  -h int\n    \tmax image height\n  -m string\n    \tregular expression to match files. Ex: jpg (default: \"jpg|png\")\n  -s string\n    \tsource directory\n  -t int\n    \tnumber of files to process concurrently (default: # of CPU cores)\n  -w int\n    \tmax image width\n  -x string\n      regular expression to exclude files, precedes -m\n```\n\n**Example**\n\n* Copy `jpg` files from `r:\\photos` to `r:\\resized` resizing any photos that have a height greater than `500`.\n* Process `10` files concurrently that are `30` days old or newer.\n* Use `r:\\facefinder` for the classification file.\n\n```\nphoto_id_resizer -s r:\\photos -d r:\\resized -f r:\\facefinder -h 500 -m jpg -t 10 -a 30\n```\n\nOption | Explanation\n-------|------------\n-s r:\\photos | source directory\n-d r:\\resized | destination directory\n-f r:\\facefinder | location of the 'facefinder' classification file\n-h 500 | resize file if height is greater than 500 pixels, otherwise, just copy image to destination\n-m jpg | match any file name containing 'jpg'; for case insensitive use: (?i)jpg\n-t 10 | process 10 images concurrently\n-a 30 | skip files older then 30 days\n\n**Acknowledgements**\n\n* [Caire](https://github.com/esimov/caire) - a content aware image resizing library with face detection\n* [facefinder](https://github.com/esimov/caire/blob/master/data/facefinder) -  the face finding classification file use by this program\n* [Go Concurrency Patterns: Pipelines and cancellation](https://blog.golang.org/pipelines)\n\n**License**\n\n* [MIT License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fphoto_id_resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjftuga%2Fphoto_id_resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjftuga%2Fphoto_id_resizer/lists"}