{"id":24926632,"url":"https://github.com/webit-de/compress-images","last_synced_at":"2025-06-28T18:11:50.927Z","repository":{"id":62547894,"uuid":"82034804","full_name":"webit-de/compress-images","owner":"webit-de","description":"Compress images with TinyPNG","archived":false,"fork":false,"pushed_at":"2020-08-11T09:41:56.000Z","size":5,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-23T22:37:27.638Z","etag":null,"topics":["cli","image-compression","php","tinypng","tinypng-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","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/webit-de.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}},"created_at":"2017-02-15T07:56:35.000Z","updated_at":"2021-06-22T02:19:21.000Z","dependencies_parsed_at":"2022-11-02T22:30:34.701Z","dependency_job_id":null,"html_url":"https://github.com/webit-de/compress-images","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/webit-de%2Fcompress-images","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webit-de%2Fcompress-images/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webit-de%2Fcompress-images/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webit-de%2Fcompress-images/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webit-de","download_url":"https://codeload.github.com/webit-de/compress-images/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248109866,"owners_count":21049386,"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":["cli","image-compression","php","tinypng","tinypng-api"],"created_at":"2025-02-02T12:52:55.070Z","updated_at":"2025-04-09T20:41:42.013Z","avatar_url":"https://github.com/webit-de.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Compress images with TinyPNG\n============================\n\nCompress all PNG \u0026 JPG images within an directory and its subdirectories using the [tinypng.com](https://tinypng.com/) API.\n\n[![Packagist](https://img.shields.io/packagist/v/webit-de/compress-images.svg)](https://packagist.org/packages/webit-de/compress-images/)\n\nRequirements\n------------\n\n  * PHP with CLI \u0026 CURL modules\n  * Composer\n  * A [tinyPNG API Key](https://tinypng.com/developers)\n\nInstallation\n------------\n\nPackagist Entry https://packagist.org/packages/webit-de/compress-images/\n\n    composer create-project webit-de/compress-images .\n\nUsage\n-----\n\n    php compress-images.php [input directory] [output directory] [API key]\n\neg: \n\n    php compress-images.php /tmp/images/ /tmp/images/ L33T-R2D2\n\nMotivation\n----------\n\nThis script was made to compress all images recursively in a given directory.\n\nIt was meant to be a simple, executable example on how to use the TinyPNG API with PHP.\n\nTinyPNG has a great documentation on how to do more stuff like resizing or\nusing cloud services as target directory:\n\n  * https://tinypng.com/developers/reference/php\n\nSo feel free to use this script as a kickstarter and adapt it to your own needs.\n\nLicense\n-------\n\nGNU General Public License version 2\n\nThe GNU General Public License can be found at http://www.gnu.org/copyleft/gpl.html.\n\nAuthor\n------\n\nDan Untenzu (\u003cuntenzu@webit.de\u003e / [@pixelbrackets](https://github.com/pixelbrackets))\nfor webit! Gesellschaft für neue Medien mbH (http://www.webit.de/)\n\nChangelog\n---------\n\nhttps://github.com/webit-de/compress-images/releases/\n\nContribution\n------------\n\nThis PHP project is Open Source, so please use, patch, extend or fork it.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebit-de%2Fcompress-images","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebit-de%2Fcompress-images","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebit-de%2Fcompress-images/lists"}