{"id":13417341,"url":"https://github.com/sketch-hq/sketch-image-compressor","last_synced_at":"2025-03-15T02:31:11.354Z","repository":{"id":139114201,"uuid":"62238569","full_name":"sketch-hq/sketch-image-compressor","owner":"sketch-hq","description":"A Plugin for Sketch that compresses your bitmap assets, to keep filesize to a minimum.","archived":true,"fork":false,"pushed_at":"2020-09-16T10:50:59.000Z","size":948,"stargazers_count":333,"open_issues_count":11,"forks_count":23,"subscribers_count":27,"default_branch":"master","last_synced_at":"2024-08-10T06:01:17.552Z","etag":null,"topics":["sketch","sketch-app","sketch-plugin","sketch-plugins","sketchapp"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/sketch-hq.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}},"created_at":"2016-06-29T15:50:43.000Z","updated_at":"2024-05-31T22:16:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"75633ecb-88b2-4eef-914c-e79d60b55160","html_url":"https://github.com/sketch-hq/sketch-image-compressor","commit_stats":null,"previous_names":["bohemiancoding/sketch-image-compressor"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch-hq%2Fsketch-image-compressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch-hq%2Fsketch-image-compressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch-hq%2Fsketch-image-compressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sketch-hq%2Fsketch-image-compressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sketch-hq","download_url":"https://codeload.github.com/sketch-hq/sketch-image-compressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243674786,"owners_count":20329160,"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":["sketch","sketch-app","sketch-plugin","sketch-plugins","sketchapp"],"created_at":"2024-07-30T22:00:35.537Z","updated_at":"2025-03-15T02:31:10.834Z","avatar_url":"https://github.com/sketch-hq.png","language":"JavaScript","funding_links":[],"categories":["Plugins"],"sub_categories":["Images"],"readme":"# Image Compressor\n\n⚠️ This plugin is no longer maintained. We recommend using [ImageOptim](https://imageoptim.com/sketch) instead.\n---\n\nA Plugin for Sketch that compresses your exported bitmap assets, to keep filesize to a minimum. This Plugin requires Sketch 3.8.\n\nPlease note that the compression is lossless, so **no pixels will be harmed by running this Plugin** : )\n\n## Installation\n\n- Download [Sketch Image Compressor](https://github.com/sketch-hq/sketch-image-compressor/files/1439529/sketch.image.compressor.sketchplugin.zip) \u0026 unzip it.\n- Double click **Sketch Image Compressor.sketchplugin** to install the Plugin.\n\n\n## Usage\n\nThe Plugin uses two methods for asset compression:\n\n- **Quick Compression** happens automatically, whenever you export an asset from Sketch using the File › Export… menu option or the Export button in the toolbar. The Plugin will run your PNG \u0026 JPG assets through [`optipng`](http://optipng.sourceforge.net) and [`jpegoptim`](https://github.com/tjko/jpegoptim) using the quickest settings for both, so that you get smaller files as fast as possible.\n- **Full Compression** happens when you choose the Plugins › Sketch Image Compressor › Export All Assets menu option. You'll be asked for a path where your assets will be exported, and then the Plugin will export *every exportable layer* from your document, and run the assets through [`advpng`](https://github.com/amadvance/advancecomp), [`optipng`](http://optipng.sourceforge.net), [`pngcrush`](https://sourceforge.net/projects/pmt/files/), [`zopflipng`](https://github.com/google/zopfli), [`jpegtran`](http://www.infai.org/jpeg/) and [`jpegoptim`](https://github.com/tjko/jpegoptim), using more aggressive settings than the Quick Compression (i.e: the operation will be **extremely slow**)\n\nPlease note that both methods won't block Sketch's UI when running, so you'll be able to keep on working while the compressors run. *However*, running a Full Compression on a non-trivial document will most likely consume a lot of CPU for a long time, so don't expect Sketch to be as snappy as usual : )\n\nYou'll get some feedback about the process in the Sketch window while it's running, and some stats when it is done.\n\n## Acknowledgements\n\n- Thank you [ImageOptim](https://imageoptim.com) for the inspiration. If you're looking for more fine-grained control of your compression settings, or a way to do lossy compression, it doesn't get any better than this.\n- Thanks to the following projects:\n  - [advpng](https://github.com/amadvance/advancecomp)\n  - [jpegoptim](https://github.com/tjko/jpegoptim)\n  - [jpegtran](http://www.infai.org/jpeg/)\n  - [optipng](http://optipng.sourceforge.net)\n  - [pngcrush](https://sourceforge.net/projects/pmt/files/)\n  - [zopflipng](https://github.com/google/zopfli)\n\n## LICENSE\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Bohemian Coding\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketch-hq%2Fsketch-image-compressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsketch-hq%2Fsketch-image-compressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsketch-hq%2Fsketch-image-compressor/lists"}