A small util i used while making antstack.com
It basically converts .png files to .webp Read about Webp here
uses Sharp to do all of its magic
install packages using your package manager
npm install
- Add your .png images to the
inFiles
folder - in the
index.ts
add your file name(s) in the array - run
npm run start
- Your .webp files will be in the
outDir
folder!!
Overwrites by default so don't worry
- Directory and looping specific methods are present in
index.ts
- Sharp specific methods are in
imageMethods/convert.ts
More to come!
I think having a handy desktop app that is nicely customizable will help any frontend dev and will be a fun activity to checkout desktop app development. I am exploring Tauri or even Electron will do!