continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
- $src = str_replace('.', "-$max_hw.", $big_src);
+ $src = str_replace('.', "-$max_width-$max_height.", $big_src);
$dimensions = image_dimensions($src);
if($dimensions) {
list($width, $height) = explode('x', $dimensions);
continue;
}
list($max_width, $max_height) = explode('x', $max_hw);
- $src = str_replace('.', "-$max_hw.", $big_src);
+ $src = str_replace('.', "-$max_width-$max_height.", $big_src);
if(($_FILES['image'] && $_FILES['image']['error'] == 0) || !file_exists($src)) {
imagemagick_convert($big_src, $src, "-geometry $max_hw", 'Resizing image');
}