Skip to content

Commit

Permalink
feat: compress png
Browse files Browse the repository at this point in the history
  • Loading branch information
iib0011 committed Feb 23, 2025
1 parent 97b940a commit bb630a0
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 11 deletions.
10 changes: 1 addition & 9 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ npm run dev
### Create a new tool

```bash
npm run script:create:tool my-tool-name folder1/folder2
npm run script:create:tool my-tool-name folder1/folder2 ## examples string/join or image/png/compress
```

Use `folder1\folder2` on Windows
Expand Down
16 changes: 16 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@types/lodash": "^4.17.5",
"@types/morsee": "^1.0.2",
"@types/omggif": "^1.0.5",
"browser-image-compression": "^2.0.2",
"color": "^4.2.3",
"formik": "^2.4.6",
"jimp": "^0.22.12",
Expand Down
4 changes: 3 additions & 1 deletion src/pages/tools/image/png/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { tool as pngCompressPng } from './compress-png/meta';

Check failure on line 1 in src/pages/tools/image/png/index.ts

View workflow job for this annotation

GitHub Actions / test-and-build

Cannot find module './compress-png/meta' or its corresponding type declarations.
import { tool as convertJgpToPng } from './convert-jgp-to-png/meta';
import { tool as pngCreateTransparent } from './create-transparent/meta';
import { tool as changeColorsInPng } from './change-colors-in-png/meta';

export const pngTools = [
changeColorsInPng,
pngCompressPng,
pngCreateTransparent,
changeColorsInPng,
convertJgpToPng
];

0 comments on commit bb630a0

Please sign in to comment.