As of now, only custom codes and Slick field formatter support aspect ratio. Views style plugin doesn't.

Aspect ratio will fix excessive height issue with lazyloaded images. This impresses empty white space until all images are loaded.

This is not the module bug, nor Slick library, but more about the way 1px images rendered by browsers.

You can easily reproduce it without the modules, nor libraries, just plain HTML with 1px image SRC and the non-regular target WIDTH and HEIGHT:

Non-regular dimensions:
http://jsfiddle.net/z6ge4xnj/
http://jsfiddle.net/z6ge4xnj/3/

Regular or square dimensions:
http://jsfiddle.net/z6ge4xnj/1/

It seems to look good with squares, but not with non-regular dimensions.
Notice how the 1px image is taller than the rest while their dimensions are similar.

The issue only applies when using lazyload ondemand, but relatively not with Progressive loading.

Current fixes:

  1. To use lazyload Progressive.
  2. Or simply empty the lazyload option, reasonable for small images.
  3. To use Field formatter where applicable since it has more robust field options.

References:

Comments

gausarts created an issue. See original summary.

gausarts’s picture

Issue summary: View changes
gausarts’s picture

Status: Active » Needs review
StatusFileSize
new2.97 KB

Attached to bring the Aspect ratio in.

  • gausarts committed d8a5690 on 7.x-2.x
    - #2795415 by gausarts: Support aspect ratio.
    
gausarts’s picture

Status: Needs review » Fixed

Committed. Thanks.

gausarts’s picture

Uploaded referenced images for just in case the site is down.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.