@@ 57-60 (lines=4) @@ | ||
54 | exit(0); |
|
55 | } |
|
56 | ||
57 | if (!@imagecopyresampled($new_img, $img, 0, 0, 0, 0, $width, $height, $width, $height)) { |
|
58 | echo _AM_MARTIN_ERROR_COULD_NOT_RESIZE_IMAGE; |
|
59 | exit(0); |
|
60 | } |
|
61 | ||
62 | ob_start(); |
|
63 | // Get the image and create a thumbnail |
@@ 69-72 (lines=4) @@ | ||
66 | } |
|
67 | ||
68 | //if (!@imagecopyresampled($new_img, $img, ($target_width-$new_width)/2, ($target_height-$new_height)/2, 0, 0, $target_width, $target_height, $width, $height)) { |
|
69 | if (!@imagecopyresampled($new_img, $img, 0, 0, 0, 0, $target_width, $target_height, $width, $height)) { |
|
70 | echo _AM_MARTIN_ERROR_COULD_NOT_RESIZE_IMAGE; |
|
71 | exit(0); |
|
72 | } |
|
73 | ||
74 | ob_start(); |
|
75 | // Get the image and create a thumbnail |