Skip to content

Commit

Permalink
add note
Browse files Browse the repository at this point in the history
  • Loading branch information
hzlzh committed Jan 1, 2016
1 parent db0b2bd commit 72ad517
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions README-zh_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ _提示: 输出 CSS 可配合使用 [PostCSS](https://github.com/postcss/postcss
## 说明

* 如果 `width` / `height` / `background-size` 等属性已存在,则不会覆盖**对应的**原始属性值。
* 使用 `background-image: url()``background: url()` 均可被正确识别。
* 通过读取图片 `HEX` 数据取得图片 宽/高 信息,大大提升相应速度,参看:[fast-image-size](https://github.com/Ziv-Barber/fast-image-size)
* 通过 [file signatures](https://en.wikipedia.org/wiki/List_of_file_signatures) 判断检测图片类别,如:`PNG` & `JPG`
* 去掉图片最小 `buffer size` 的限制,参看:[/fast-image-size/pull/5](https://github.com/Ziv-Barber/fast-image-size/pull/5)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ _Tips: Use [PostCSS](https://github.com/postcss/postcss) with `CSS Out` if neede
## Notes

* CSS property generating will be ignored if any of those `width` / `height` / `background-size` already set.
* Both `background-image: url()` and `background: url()` can be detected successfully.
* Get image size from `HEX` data from file buffer via [fast-image-size](https://github.com/Ziv-Barber/fast-image-size), more fast now.
* Detect `PNG` & `JPG` based on [file signatures](https://en.wikipedia.org/wiki/List_of_file_signatures).
* No minimum image buffer size limited now [/fast-image-size/pull/5](https://github.com/Ziv-Barber/fast-image-size/pull/5).
Expand Down

0 comments on commit 72ad517

Please sign in to comment.