{"id":18016628,"url":"https://github.com/afcms/vscode-oxipng","last_synced_at":"2026-05-09T15:11:39.739Z","repository":{"id":259901960,"uuid":"864410448","full_name":"AFCMS/vscode-oxipng","owner":"AFCMS","description":"WIP","archived":false,"fork":false,"pushed_at":"2025-02-05T18:02:37.000Z","size":303,"stargazers_count":1,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-10T01:19:12.045Z","etag":null,"topics":["tool","vscode","vscode-extension","wasm"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/AFCMS.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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-09-28T06:28:37.000Z","updated_at":"2024-12-17T16:03:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"7dacb40a-d0d5-4d6c-85bf-6a2f80726138","html_url":"https://github.com/AFCMS/vscode-oxipng","commit_stats":null,"previous_names":["afcms/vscode-oxipng"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2Fvscode-oxipng","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2Fvscode-oxipng/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2Fvscode-oxipng/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AFCMS%2Fvscode-oxipng/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AFCMS","download_url":"https://codeload.github.com/AFCMS/vscode-oxipng/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247201880,"owners_count":20900684,"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":["tool","vscode","vscode-extension","wasm"],"created_at":"2024-10-30T04:18:43.546Z","updated_at":"2026-05-09T15:11:39.731Z","avatar_url":"https://github.com/AFCMS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# VSCode Oxipng\n\n## Features\n\nThis VSCode Extension aims to integrate with the [**oxipng**](https://github.com/oxipng/oxipng) PNG's optimisation tool.\n\nIt isn't affiliated with the oxipng project.\n\n-   Support for workspaces, Git, remote and local development.\n-   Expose common settings.\n\n## Download\n\n-   [Marketplace](https://marketplace.visualstudio.com/items?itemName=AFCMS.oxipng)\n-   [OpenVSX](https://open-vsx.org/extension/AFCMS/oxipng)\n\n## Requirements\n\nSome features require the builtin Git extension, which is enabled by default.\n\n## Extension Settings\n\nThis extension contributes the following settings:\n\n-   `oxipng.hostBinary`: Path to the `oxipng` binary.\n-   `oxipng.optimisationLevel`: The optimisation level preset to use. The default level 2. (0-6)\n-   `oxipng.stripMetadata`: `none`, `safe`, `all`. The default is `none`.\n-   `oxipng.useZopfli`: Use the Zopfli algorithm. The default is `false`.\n\nBy design, not all of oxipng params are configurable. The extension aims to be simple and easy to use.\n\n## Known Issues\n\n### You still have to install `oxipng` by hand\n\nThe extension does not install `oxipng` for you. You can install it via `cargo` if you have a [Rust](https://www.rust-lang.org) toolchain installed:\n\n```bash\ncargo install oxipng\n```\n\nIf you want you can even try to get a bit more performance by compiling for your exact CPU architecture:\n\n```toml\n# .cargo/config.toml\n[rust]\nlto = \"thin\"\njemalloc = true\n\n[target.'cfg(all())']\nrustflags = [\"-C\", \"target-cpu=native\"]\n\n[llvm]\ncxxflags = \"-march=native\"\ncflags = \"-march=native\"\n```\n\nUltimatly I have plans to support detecting a binary in path, as well as installing from `cargo` and downloading a precompiled binary.\n\n### It doesn't support the web version of VSCode\n\nSince it solely relies on a binary, it won't work in the web version of VSCode.\n\nThe original plan was to use a WASM version of `oxipng`, but I never got WASI threads to work and without them the performance is abysmal.\n\n### No exported API yet\n\nI designed the base class to be able to abstract from multiple ways of running oxipng, mostly to be able to support a WASM version in the future.\n\nI plan to export the `OxipngOptimiser` class, as well as it's TypeScript definition file, so you can integrate with this extension in your owns.\n\n## Release Notes\n\n### 0.0.1\n\nInitial release\n\n### 0.0.2\n\nSwitch to ESM modules\n\n### 0.0.3\n\nProvide a `languageModelTools` entry to allow the use of the `oxipng` binary from LLMs.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafcms%2Fvscode-oxipng","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafcms%2Fvscode-oxipng","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafcms%2Fvscode-oxipng/lists"}