Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Matysiak committed Mar 7, 2018
1 parent e254040 commit 426bb66
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,39 +43,39 @@ data-test="success">

## Parameters

**input**
### input

Image source.

**sizes**
### srcset

CSS rules that specifies image sizes for different page layouts.
Dimensions separated by comma, eg. "360,720,1280". From smallest to largest. If you need to crop your image, use WxH eg. "360x200,720x400,1280x400".

**srcset**
### sizes (optional)

Dimensions separated by comma, eg. "360,720,1280". From smallest to largest. If you need to crop your image, use WxH eg. "360x200,720x400,1280x400".
CSS rules that specifies image sizes for different page layouts. Optional but recommended.

**defaultSize** (optional)
### defaultSize (optional)

Size used for fallback in src="" attribute. If not used, last dimension from srcset is used.

**quality** (optional)
### quality (optional)

Quality of generated JPG files. Default: 80.

**attrAlt** (optional)
### attrAlt (optional)

Value of alt="" attribute.

**attrClass** (optional)
### attrClass (optional)

Value of class="" attribute.

**attrStyle** (optional)
### attrStyle (optional)

Value of style="" attribute.

**attrCustom** (optional)
### attrCustom (optional)

Any additional attributes you may need. Eg. data-test="success"

Expand Down

0 comments on commit 426bb66

Please sign in to comment.