Imagefit

Component ID

2863149

Component name

Imagefit

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

174

Component created

Component changed

Component body

This module was created to fill a void for D7 sites we worked on that had no framework or base theme with responsive image handling. While it may be mildly obsolete in these modern times, it’s still super useful in a pinch.

This modules utilizes the imagefit.js jQuery plugin created by Periplox. Simply put, it is a simple, lightweight plugin to make images fit anywhere and anyway.

To use, simply add the .imagefit class, or add custom selectors via the configuration page, to any container with an image. It can be used on any container with an image, even inline with your content. As long as your container has specified dimensions, the image will adjust to fit.