Update of /cvsroot/php-blog/serendipity
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5966
Modified Files:
NEWS serendipity_functions_images.inc.php
Log Message:
Fixed serious bug when resizing small images (width became height and height became width)
Index: NEWS
===================================================================
RCS file: /cvsroot/php-blog/serendipity/NEWS,v
retrieving revision 1.127
retrieving revision 1.128
diff -u -d -r1.127 -r1.128
--- NEWS 19 May 2004 21:03:46 -0000 1.127
+++ NEWS 19 May 2004 21:22:11 -0000 1.128
@@ -3,6 +3,8 @@
Version 0.7 ()
------------------------------------------------------------------------
+ * Fixed wrong proportions when resizing small images (tomsommer)
+
* Fixed bug #940239 - Wrong message printed when deleting a category
without any entries (tomsommer)
Index: serendipity_functions_images.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/serendipity_functions_images.inc.php,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- serendipity_functions_images.inc.php 13 May 2004 17:44:58 -0000 1.10
+++ serendipity_functions_images.inc.php 19 May 2004 21:22:11 -0000 1.11
@@ -329,8 +329,8 @@
if ($div_width <= 1 && $div_height <= 1) {
// do not scale small images
- $newheight = $width;
- $newwidth = $height;
+ $newheight = $height;
+ $newwidth = $width;
} elseif ($div_width >= $div_height) {
// max width - calculate height, keep width as scaling base
$newheight = round($height / $div_width);
|