[Yanel-commits] rev 41351 - public/yanel/trunk/src/contributions/resources/image/src/java/org/wyona/yanel/impl/resources/image

michi at wyona.com michi at wyona.com
Wed Feb 4 16:38:59 CET 2009


Author: michi
Date: 2009-02-04 16:38:58 +0100 (Wed, 04 Feb 2009)
New Revision: 41351

Modified:
   public/yanel/trunk/src/contributions/resources/image/src/java/org/wyona/yanel/impl/resources/image/ImageResource.java
Log:
TODO added re automatic ratio calculation

Modified: public/yanel/trunk/src/contributions/resources/image/src/java/org/wyona/yanel/impl/resources/image/ImageResource.java
===================================================================
--- public/yanel/trunk/src/contributions/resources/image/src/java/org/wyona/yanel/impl/resources/image/ImageResource.java	2009-02-04 15:38:30 UTC (rev 41350)
+++ public/yanel/trunk/src/contributions/resources/image/src/java/org/wyona/yanel/impl/resources/image/ImageResource.java	2009-02-04 15:38:58 UTC (rev 41351)
@@ -59,6 +59,7 @@
 
         double destRatio = (double) destWidth / (double) destHeight;
 
+        // TODO: If either destination width or destination height is not specified, then use sourceRatio in order to compute the correct width ot height which was not specified!
         if (sourceRatio !=  destRatio) log.error("Source (" + sourceRatio + ") and destination (" + destRatio + ") width/height ratio are NOT the same!");
 
         double scaleFactor = (double) destHeight / (double) sourceHeight;



More information about the Yanel-commits mailing list