Puedes cambiar en vez de medida fija que sea por un porcentaje, cambia estas lineas
Código PHP:
<?php
$new_img_w = $_GET['ancho'];
$new_img_h = $_GET['alto'];
?>
por estas, teniendo en cuenta que debs darle valor a $porcentaje, ejemplo:
50% = 0.5, 100% = 1, 25% = 0.25
Código PHP:
<?php
$porcentaje = 0.5; # 50%
$new_img_w = $img_w * $porcentaje;
$new_img_h = $img_h * $porcentaje;
?>