In my sites admin panel there is a option to upload images of different width and heights. I need to show those images in my home page with a fixed width of '176' and height of '100' .I set width and height as this in my home page:
<img src="<?php echo base_url()?>affliateimages/<?php echo $randimagep2->varaffimage ?>" width='176' height='100' />
But the problem is that when i upload a image of large/small width and height it shown as distorted in my home page. How can I resize image as propotion wise using php?