Skip to content

postxml/postxml-image-size

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postxml-image-size

npm version

PostXML plugin adds sizes to local images.

Installation

npm i postxml-image-size --save-dev

Usage

Postxml

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

About

PostXML plugin adds sizes to images.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published