/[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.1, Thu Nov 20 21:21:08 2008 UTC revision 1.2, Sun Feb 1 03:22:54 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: image_resize_filter.module,v 1.1 2008/11/20 21:21:08 quicksketch Exp $
3    
4  /**  /**
5   * @file image_resize_fitler.module   * @file image_resize_fitler.module
# Line 126  function image_resize_filter_get_images( Line 126  function image_resize_filter_get_images(
126      $width_matches = array();      $width_matches = array();
127      $height_matches = array();      $height_matches = array();
128    
129      preg_match('/width[ ]*=[ ]*"?([0-9]+)"?/', $img_tag, $width_matches);      preg_match('/width[ ]*[=,:][ ]*"?([0-9]+)"?/', $img_tag, $width_matches);
130      preg_match('/height[ ]*=[ ]*"?([0-9]+)"?/', $img_tag, $height_matches);      preg_match('/height[ ]*[=,:][ ]*"?([0-9]+)"?/', $img_tag, $height_matches);
131    
132      $width = !empty($width_matches[1]) ? $width_matches[1] : FALSE;      $width = !empty($width_matches[1]) ? $width_matches[1] : FALSE;
133      $height = !empty($height_matches[1]) ? $height_matches[1] : FALSE;      $height = !empty($height_matches[1]) ? $height_matches[1] : FALSE;

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

  ViewVC Help
Powered by ViewVC 1.1.2