{"id":18458301,"url":"https://github.com/crazyfactory/png-compression-cli","last_synced_at":"2025-04-23T12:24:12.999Z","repository":{"id":49951891,"uuid":"93603259","full_name":"crazyfactory/png-compression-cli","owner":"crazyfactory","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-11T11:43:28.000Z","size":709,"stargazers_count":0,"open_issues_count":23,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-03T07:34:20.899Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/crazyfactory.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":"2017-06-07T07:01:15.000Z","updated_at":"2017-06-07T07:06:49.000Z","dependencies_parsed_at":"2023-02-09T02:45:25.982Z","dependency_job_id":null,"html_url":"https://github.com/crazyfactory/png-compression-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpng-compression-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpng-compression-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpng-compression-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazyfactory%2Fpng-compression-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazyfactory","download_url":"https://codeload.github.com/crazyfactory/png-compression-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250431788,"owners_count":21429557,"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:17:47.701Z","updated_at":"2025-04-23T12:24:12.982Z","avatar_url":"https://github.com/crazyfactory.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# png-compression-cli\n\n[![npm](https://img.shields.io/npm/v/@crazyfactory/png-compression-cli.svg)](http://www.npmjs.com/package/@crazyfactory/png-compression-cli)\n[![Build Status](https://travis-ci.org/crazyfactory/png-compression-cli.svg?branch=master)](https://travis-ci.org/crazyfactory/png-compression-cli)\n[![dependencies Status](https://david-dm.org/crazyfactory/png-compression-cli/status.svg)](https://david-dm.org/crazyfactory/png-compression-cli)\n[![devDependencies Status](https://david-dm.org/crazyfactory/png-compression-cli/dev-status.svg)](https://david-dm.org/crazyfactory/png-compression-cli?type=dev)\n[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n[![Greenkeeper badge](https://badges.greenkeeper.io/crazyfactory/png-compression-cli.svg)](https://greenkeeper.io/)\n\nThe CommandLine tool for converting jpg or png files to webp, recursively.\n\n## Awsome featurn ✧٩(ˊωˋ*)و✧\nThis tool would search the jpg or png files by the head infomation with the files, so even the files without the ext name,they also would be found and be converted.\n\nso enjoy it !\n\n## Installation\n\n    $ npm i -g @crazyfactory/png-compression-cli\n\n## Usage\n\npng-compression-cli allow you to convert your images within a current directory, recursively or not. It will overwrite your files with the compressed version \n\nAfter installation, just run command `pngc` in ternimal.\n\nTo convert all images within the current directory and subdirectoies, use the -r flag\n\n    $ pngc -r\n    \nTo choose a different folder provide it with -p flag\n\n    $ pngc -p /var/my-images\n\nTo convert the specific image files (assets/img.jpg in this example), you may run the following command.\n\n    $ pngc -f assets/img.jpg\n    \nor\n\n    $ pngc -f assets/img1.jpg,assets/img2.png\n\nChange the parallel number of operations by using the -c flag\n\n    $ pngc -c 2\n\nfor more help infomation, you could run the -h flag to check it out.\n\n    $ pngc -h\n\n## License\n\nCopyright (c) 2017 Wolf T. Mathes for Crazy Factory Trading Co. Ltd.\n\nLicensed under the MIT license.\n\nSee LICENSE for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyfactory%2Fpng-compression-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazyfactory%2Fpng-compression-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazyfactory%2Fpng-compression-cli/lists"}