imagesize : Get the size of an image without reading or downloading it entirely. You can installing imagesize npm packages, there are two ways to install this module locally and globaly. -g option is specified to global. Execute the below command.
$ sudo npm install imagesize $ sudo npm install -g imagesize
If want to update the imagesize package execute the command as below,
$ sudo npm update imagesize
Update package globally,
$ npm install -g imagesize
$ sudo git clone https://github.com/rektide/imagesize.git
$ sudo npm install -g ./imagesize
imagesize@1.0.0 /usr/lib/node_modules/imagesize
You can uninstall or remove this package from your node_modules run the command as below,
$ sudo npm uninstall imagesize
| Package Name | imagesize |
| Version | 1.0.0 |
| Description | Get the size of an image without reading or downloading it entirely |
| Released Date | 2013-05-06T17:38:21.734Z |
| Published by | arnaud-lb |
| How to Learn | https://www.npmjs.com/package/imagesize/tutorial |