O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using ImageCache to scale and crop images on the fly

Now that we have ImageField support for the company node type, we can look to style the input images to make them more presentable. When it comes to image handling, we inevitably find ourselves performing a series of repeated steps, such as cropping, scaling, resizing, and so on, as per the requirements of our theme (or themes, as the case may be). It used to be the case that this procedure had to be performed manually for each image or, if we were a little more proactive, performed through a script to apply our changes on-the-fly. All this is, however, a thing of the past thanks to the ImageCache module.

The ImageCache module brings the concept of presets to Drupal's image systems. A preset ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required