
Responsify.js: Subject-aware responsive images
A jquery plugin that makes images truly responsive, without sacrificing anyone’s face.
When images are used in a responsive container on web design, because the container can change to any width:height ratio, a group shot could end up cutting off people’s faces. A nice photograph following “rule of third” could end up with no object in view. Responsive images face the challenge of how to keep the focused objects/area in view, this jquery plugin is here to solve the problem.
Responsify.js does the following:
- It allows you define a focus area on an image using
data-focus-xxx
tag - It takes in the focus area data from the image, calcuate the image’s container’s size, resize and position the image accordingly, make sure the focus area is always in view and in the best position possible
Responsive image with responsify.js
Responsive image without responsify.js
Illustration by akselkreis