May i know is there any simple codes to scale images i have retrieved from my database to be displayed. There are many solutions out that but it seems all of them are pretty complex to me.
Basically, im just fetching the image file from a database and displaying it. I want images displayed to be in uniform dimensions.
If you are looking for simplicity, I suggest you use CSS to scale the image.
Look at this threat: Resize image proportionally with CSS?
You can also use the CSS clip property to crop the image as you want it to be: http://www.w3schools.com/cssref/pr_pos_clip.asp