{"id":18455847,"url":"https://github.com/basementstudio/scripts","last_synced_at":"2025-04-15T15:22:04.320Z","repository":{"id":241637580,"uuid":"805895549","full_name":"basementstudio/scripts","owner":"basementstudio","description":null,"archived":false,"fork":false,"pushed_at":"2024-05-28T21:43:50.000Z","size":2794,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-28T21:51:07.912Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/basementstudio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-25T19:20:05.000Z","updated_at":"2025-03-08T06:53:12.000Z","dependencies_parsed_at":"2024-05-29T12:41:20.172Z","dependency_job_id":"37b627e2-4804-48bc-8f93-b64033dc71ff","html_url":"https://github.com/basementstudio/scripts","commit_stats":null,"previous_names":["basementstudio/scripts"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basementstudio%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basementstudio%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basementstudio%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/basementstudio%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/basementstudio","download_url":"https://codeload.github.com/basementstudio/scripts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249095146,"owners_count":21211871,"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":[],"created_at":"2024-11-06T08:09:17.368Z","updated_at":"2025-04-15T15:22:04.301Z","avatar_url":"https://github.com/basementstudio.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Setup (add to `package.json` scripts)\n```json\n\"compress\": \"curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/compress.py | python3 -\",\n\"rename\": \"curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/rename.py | python3 -\",\n\"resize\": \"curl -s https://raw.githubusercontent.com/basementstudio/scripts/main/resize.py | python3 -\"\n```\n\n## rename.py\nClone rename the files from a source directory to a destination directory setting a rename pattern. Usefull for large image sequences. Of course, it starts from zero.\n\n```python3 rename.py [-z zero_padding_width] src_path dest_path/Output_%n.png```\n\n## compress.py\nThis compress input images to `webp`. It outputs a summary at the end\n\n```python3 compress.py src_path dest_path --quality 80```\n\n\u003cimg width=\"469\" alt=\"image\" src=\"https://github.com/basementstudio/scripts/assets/43894343/b01eecee-38cc-4d5f-b18c-375bede7b619\"\u003e\n\n## resize.py\nThis resizes input images to a target output. You can either use `--width \u0026 --height` or `--scale`.\n\n```python3 resize.py src_path dest_path --scale 0.5```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasementstudio%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbasementstudio%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbasementstudio%2Fscripts/lists"}