jekyll-assets icon indicating copy to clipboard operation
jekyll-assets copied to clipboard

Asset width and height properties

Open jonchang opened this issue 6 years ago • 1 comments

  • [x] I tried updating to the latest version.
    • on revision 63a595850648b02baf01fbb7328b271c08bbd61c
  • [x] I Am on macOS

Description

Accessing width and height properties of assets no longer works as documented. From the README:

{{ assets["images.jpg"].width  }} => 62

It actually outputs nothing in this case.

This however does work as expected:

{{ assets["images.jpg"].dimensions.width  }} => 62

jonchang avatar May 08 '18 22:05 jonchang

Hmm... I could have swore I forwarded those methods when I switched that surface.

envygeeks avatar May 10 '18 16:05 envygeeks