{"id":15017996,"url":"https://github.com/mboljen/photocopy","last_synced_at":"2026-02-24T11:32:42.439Z","repository":{"id":185389011,"uuid":"332469950","full_name":"mboljen/photocopy","owner":"mboljen","description":"Copy or move JPEG images from one location to another","archived":false,"fork":false,"pushed_at":"2024-07-02T17:54:28.000Z","size":20,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T15:43:11.252Z","etag":null,"topics":["perl-script","perlmagick"],"latest_commit_sha":null,"homepage":"","language":"Perl","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/mboljen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"COPYING","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":"2021-01-24T14:27:21.000Z","updated_at":"2024-07-02T17:54:32.000Z","dependencies_parsed_at":"2024-09-28T19:00:37.222Z","dependency_job_id":"f2a3f8a5-a86f-4df2-8073-f466ec51c166","html_url":"https://github.com/mboljen/photocopy","commit_stats":null,"previous_names":["mboljen/photocopy"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mboljen/photocopy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboljen%2Fphotocopy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboljen%2Fphotocopy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboljen%2Fphotocopy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboljen%2Fphotocopy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mboljen","download_url":"https://codeload.github.com/mboljen/photocopy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mboljen%2Fphotocopy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29780604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["perl-script","perlmagick"],"created_at":"2024-09-24T19:51:18.073Z","updated_at":"2026-02-24T11:32:42.422Z","avatar_url":"https://github.com/mboljen.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Photocopy\n\nCopies or moves JPEG images from one location to another\n\n\n## Synopsis\n\n```console\n$ photocopy [OPTION]...\n```\n\nThe script can be invoked using zero, one or two arguments.\n\n+ If it is invoked using *two* arguments, the first argument holds the source directory _srcdir_ and the second argument holds the output directory _outdir_.\n\n+ If it is invoked using *one* argument and this argument is an existing *directory*, it is assigned as output directory _outdir_.  The current working directory is assumed to be the source directory _srcdir_.\n\n+ If it is invoked using *one* argument and this argument is an existing *file*, it is used as configuration file containing options as key-value-pairs.  Additional command line options will override the settings in the configuration file.\n\n+ If it is invoked using *one* argument and this argument is a *string*, it is used as a basename for a configuration file with the file extension `.rc`.  This file needs to reside in the directory `~/.photocopy`.  Additional command line options will override the settings in the configuration file.\n\n\n## Description\n\nThe script `photocopy` transfers JPEG images from the source directory _srcdir_ to the output directory _outdir_.  Image files can be *copied*, *moved* or *converted*.\n\nThe script can be used to transfer images from a photo camera to a local image repository or to upload the most recent images from a local image repository to a remote location.  For the latter, `photocopy` can be configured to automatically remove images from the remote location that exceed a certain threshold.\n\nFiles at the output location will be renamed to a unique filename based upon the EXIF original timestamp of the source file.\n\n### Warning\n\nIt is recommended to reserve the output directory _outdir_ exclusively for `photocopy` and not to use it for any other purpose, especially when the option **limitmode** is enabled.  If the latter is true, unregistered files in _outdir_ matching the same file extension will be removed.  It is recommended to enable **dryrun** to see what would happen.\n\n\n## Options\n\n+ `--srcdir` = _folder_\n\n  Specify the name of the source directory.  The source directory must exist and the user must have read permission.\n\n+ `--outdir` = _folder_\n\n  Specify the name of the output directory.  The output directory must exist and the user must have write permission.\n\n+ `--action` = _string_\n\n  Specify the transfer action.  Valid values are `cp` for copying, `mv` for moving and `cv` for converting.\n\n+ `--cachefile` = _filename_\n\n  Specify the name of the cachefile.\n\n+ `--cvopt` = _string_\n\n  Add ImageMagick options when **action** is `cv` for converting.\n\n+ `--dirdepth` = _integer_\n\n  Set number of subfolders within directory _outdir_.  Valid values are `1`, `2` and `3`.\n\n+ `--dirfmt1` | `--dirfmt2` | `--dirfmt3` = _string_\n\n  Use `strftime` flags to label subfolders in directory _outdir_.  The default setting is `%Y` for subfolder 1, `%m` for subfolder 2 and `%d` for subfolder 3.\n\n+ `--limitmode` = _string_\n\n  Activate flag to limit files at directory _outdir_.  Use `none` (default) to disable this option.  If set, this option requires **limitcount** being set to a positive value.  The following modes are available:\n\n  - `num`\n\n    Limit the number of image files to the most recent ones.\n\n  - `date`\n\n    Remove images when their EXIF datetime is older than a certain amount of days from today.\n\n  - `uptime`\n\n    Remove images after a certain amount of days of being uploaded.\n\n+ `--limitcount` = _integer_\n\n  Add threshold value for **limitmode**.  The default is `0`.\n\n+ `--outext` = _string_\n\n  Specify the format of the images at the output directory.  The default is `JPG`.\n\n+ `--recurse`\n\n  Recurse into all subfolders of the source directory.\n\n+ `--dryrun`\n\n  Do not change the file system.  Only simulate what would be done.\n\n+ `--progress`\n\n  Enable or disable the use of a progress bar.  Default is enabled.\n\n+ `--help`\n\n  Print a brief help message and exit.\n\n\n## Requirements\n\n+ [Date::Parse](https://metacpan.org/pod/Date::Parse)\n+ [File::HomeDir](https://metacpan.org/pod/File::HomeDir)\n+ [File::Slurp](https://metacpan.org/pod/File::Slurp)\n+ [Image::Magick](https://metacpan.org/pod/Image::Magick)\n+ [Regexp::Common](https://metacpan.org/pod/Regexp::Common)\n\n\n## Installation\n\nUse the following command to install this software:\n\n```console\n$ make\n$ make install\n```\n\nThe default `PREFIX` is set to `/usr/local`.  In order to successfully complete the installation, you need to have write permissions for the installation location.\n\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmboljen%2Fphotocopy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmboljen%2Fphotocopy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmboljen%2Fphotocopy/lists"}