In my rails3 application, I have user profiles that include 4 profile images of various sizes along with a slideshow feature. Additionally, there is one background image named xx.gif.
If the size of a profile image is less than 640*480 pixels, I want to display the background image (xx.gif) in the background and the smaller profile image in the foreground. The smaller profile image should be centered corresponding to the background image.
Does anyone know how to achieve this?