1.1.2 • Published 4 years ago
resize-jpeg v1.1.2
What's resize-jpeg?
While developing web applications, I needed to use the same static image in different sizes. I wrote a little nodejs cli tool to achieve this.
How to use ?
## With image link + npx ⚡️
Add your image links (comma seperated if multiple) as last arg.
npx resize-jpeg md=320x240,lg=600x400,xl=1200x900 https://upload.wikimedia.org/wikipedia/commons/a/a3/June_odd-eyed-cat.jpg
## With local files
If you cloned this repo :
- Copy your "jpg", "jpeg", "png" files to input folder. Then run following command
npm run resize-jpeg md=320x240,lg=600x400,xl=1200x900
## With image link
Add your image links (comma seperated if multiple) as last arg.
npm run resize-jpeg md=320x240,lg=600x400,xl=1200x900 https://upload.wikimedia.org/wikipedia/commons/a/a3/June_odd-eyed-cat.jpg
Where are my files ?
Your files are in your pictures directory e.g :
Windows Based Systems
c:\Users\\Pictures\image-resizer
Unix Based Systems
/Users/<Username>/Pictures/image-resizer
Supported Extensions
Supported prefix names = "sm", "md", "lg", "xl"
Supported extensions = "jpg", "jpeg", "png"