/[drupal]/contributions/modules/image_resize_filter/image_resize_filter.module
ViewVC logotype

Diff of /contributions/modules/image_resize_filter/image_resize_filter.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2, Sun Feb 1 03:22:54 2009 UTC revision 1.3, Sun Feb 1 03:53:29 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: image_resize_filter.module,v 1.1 2008/11/20 21:21:08 quicksketch Exp $  // $Id: image_resize_filter.module,v 1.2 2009/02/01 03:22:54 quicksketch Exp $
3    
4  /**  /**
5   * @file image_resize_fitler.module   * @file image_resize_fitler.module
# Line 193  function image_resize_filter_get_images( Line 193  function image_resize_filter_get_images(
193        $ratio = $actual_height/$actual_width;        $ratio = $actual_height/$actual_width;
194        $height = round($ratio * $width);        $height = round($ratio * $width);
195      }      }
196      else {      elseif (!$width) {
197        $ratio = $actual_width/$actual_height;        $ratio = $actual_width/$actual_height;
198        $width = round($ratio * $height);        $width = round($ratio * $height);
199      }      }

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.2