Ver originalif (tipo == 'tipo deseado') { $width = 'x'; $height = 'x';}/* Imprimir dentro del atributo height y width los valores de $width y $height */