Posts Tagged ‘images’

20090716 Proportionally resize images with CSS (and maybe JS)

With CSS only: img { height: auto; max-width: 99%; } I normally used only max-width: 99%;, but I found it tends to produce images which are too vertically stretched in some cases, and I am of the opinion that images should always preserve their aspect ratio, unless you’re trying to create some strange effect. Tested [...]

20060506 Do you want to resize and crop images in RoR? RMagick is your friend

In the last iteration of my photoapp, I still wasn’t able to update the pictures once updated. I also didn’t know how to configure the file_column plug-in for creating different types of resized images. So I finally decided to get rid of file_column, after having tried to find some kind of answer in forums, mailing [...]