Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21759
Modified Files:
Tag: branch-smarty
serendipity_functions_images.inc.php
Log Message:
- Fix scale problem with... ehh ... some images
Index: serendipity_functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_images.inc.php,v
retrieving revision 1.36.2.1
retrieving revision 1.36.2.2
diff -u -d -r1.36.2.1 -r1.36.2.2
--- serendipity_functions_images.inc.php 14 Sep 2004 13:11:17 -0000 1.36.2.1
+++ serendipity_functions_images.inc.php 28 Oct 2004 20:35:30 -0000 1.36.2.2
@@ -635,7 +635,7 @@
$div_width = $width / $newwidth;
$div_height = $height / $newwidth;
- if ($div_width <= 1 || $div_height <= 1) {
+ if ($div_width <= 1) {
// do not scale small images
$newheight = $height;
$newwidth = $width;
@@ -1040,4 +1040,4 @@
'dimensions_height' => SORT_ORDER_HEIGHT
);
}
-?>
\ No newline at end of file
+?>
|