Read an image and use it's size as values for properties.
Uses the Imagesize module to read an image's size and put that size in your CSS!
var rework = require'rework';var size = require'rework-imagesize';var css = reworkstrusesize'path/to/images/folder'toString;
Would produce something like:
You can also use the "properties"
imgsizeh to get only
height of the image, respectively.