Contributions

Features (Category Index)
Search: 

Keep Image Proportions

Keep images in their correct proportion regardless of their dimensions.

Expand All / Collapse All

Divide by zero Warning 16 Jan 2006

Hello,
I've used to script successfully.
Thanks to whoever created it :)

My database contains records that have an image path in the products table but no supporting image in the Images folder.

When I initially used this script, php was delivering a warning that I was dividing by zero in html_output.php.
I fixed this error by modifying the code you wrote in the following way (see attached).

Thanks again for making this script,

-Mike

Constrain Proportions with Admin Jim Cowan 7 Jan 2003
Constrain Proportions with Admin Jim Cowan 6 Jan 2003
Keep Image Proportions 1.0 Alex Tulkoff (by way of Tony Pros) 13 Sep 2002

Note: Contributions are used at own risk.