Image Resize Filter

quicksketch - November 20, 2008 - 21:23

The easiest end-user solution for resizing inline images.

This filter makes it easy to resize images, especially when combined with a WYSIWYG editor such as tinyMCE or FCKeditor. Users never have to worry about scaling image sizes again, just insert an image and set it's height and width properties in HTML (this is done automatically be WYSIWYG editors) and the image is resized on output to match the HTML.

Demos:
Image Resize Filter demo and configuration options by Lullabot.
Demo combining FileField Insert with Image Resize Filter by MustardSeed Media.

Requirements:

  • PHP 5 or higher

Installation:

  1. Place the entire image_resize_filter directory in sites/all/modules. Then enable the module in Drupal.
  2. Visit the Adminsiter->Site configuration->Input formats (admin/settings/filters). Click "configure" next to the input format you want to enable the image resize filter on.
  3. Check the box for "Image resize filter" under the list of filters and save the configuration.
  4. Click the "Rearrange" tab to check the order of the filters.

    If using the Image Resize Filter on the "Filtered HTML" input format, you MUST ensure
    A) The <img> tag is in the list of allowed tags and
    B) The "Image resize filter" is run BEFORE the "HTML filter".

    If using the Image Resize Filter with BBCode or some other non-HTML filter, the "Image resize filter" must be run AFTER the BBCode filter.

  5. Optional. Click "configure" next to the input format the image resize filter has been enabled on, then click the "Configure" tab to set additional configuration for the the image resize filter.

This module can resize any image in any textarea in Drupal. It can even resize remotely hosted images, which are downloaded and hosted locally when resized.

This module created by Nate Haug of Lullabot.

Downloads

Version Downloads Date Links
6.x-1.6 Download (15.33 KB) 2009-Nov-16 Notes


 
 

Drupal is a registered trademark of Dries Buytaert.