Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv32284
Modified Files:
serendipity_functions_images.inc.php
Log Message:
Fix Bug #1007755 - Unable to resize images with an extreme height vs. width ratio
Index: serendipity_functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_images.inc.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -d -r1.30 -r1.31
--- serendipity_functions_images.inc.php 10 Aug 2004 17:39:52 -0000 1.30
+++ serendipity_functions_images.inc.php 14 Aug 2004 22:42:04 -0000 1.31
@@ -646,7 +646,7 @@
$div_width = $width / $newwidth;
$div_height = $height / $newwidth;
- if ($div_width <= 1 && $div_height <= 1) {
+ if ($div_width <= 1 || $div_height <= 1) {
// do not scale small images
$newheight = $height;
$newwidth = $width;
|