| 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 |
| 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; |