![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
batch-image-resizer
Advanced tools
CLI tool for resizing images using sharp and optimising jpg
and png
files using imagemin. The CLI tool does not require imagemagick
or graphicsmagick
to be installed.
Supports both single files as well as recursive file finding and processing using a glob pattern.
$ npm install
Using -s
flag followed by an array of numbers one can specify the image sizes wants to resize their image to.
These sizes can be passed to a glob where all compatible files in a nested folder structure are found and converted to the specified formats. The folder structure of the input folder is retained in the output folder.
$ node ./bin/batch-image-resizer.js -i ./input -o ./output -s "[50, 500, 1000, 1500]"
Alternatively one can specify a single file to convert
$ node ./bin/batch-image-resizer.js -i ./input/example.png -o ./output/example.png -s "[50, 500, 1000, 1500]"
Which in turn creates
input
└── example.jpg
output
├── example-1000w.jpg
├── example-1500w.jpg
├── example-500w.jpg
└── example-50w.jpg
-v, --version [print version number]
-h, --help [print help]
-i, --input [example: -i ./input/example.png] [example: -i ./input] [required]
-o, --output [example: -o ./output/example.png] [example: -o ./output] [required]
-s, --sizes [example: -s "[50, 500, 1000, 1500]"] [not required]
<img
alt="Example image description"
srcset="example-500w.jpg 500w, example-1000w.jpg 1000w, example-1500w.jpg 1500w"
src="example-1000w.jpg"
/>
<picture>
<source srcset="example-500w.webp 500w, example-1000w.webp 1000w, example-1500w.webp 1500w" type="image/webp">
<source srcset="example-500w.jpg 500w, example-1000w.jpg 1000w, example-1500w.jpg 1500w" type="image/jpeg">
<img src="example-500w.jpg" alt="Example image description">
</picture>
My work is released under the MIT license.
FAQs
CLI tool for resizing and optimizing images.
We found that batch-image-resizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.