postxml-image-size
v0.1.2
Published
Postxml plugin adds sizes to images
Downloads
5
Maintainers
Readme
postxml-image-size
PostXML plugin adds sizes to local images.
Installation
npm i postxml-image-size --save-dev
Usage
Options
cwd
Directory of parsing file. It is needed for images' urls.
Type: String
Default: ''
round
Enable rounding sizes
Type: String
Default: true
Example
Input
<img src="image.png">
Output
<img src="image.png" width="255" height="180">
Licence
MIT