xmlgraphics-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbowdi...@apache.org
Subject svn commit: r1430286 - in /xmlgraphics/commons/trunk: src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java status.xml
Date Tue, 08 Jan 2013 13:52:59 GMT
Author: cbowditch
Date: Tue Jan  8 13:52:58 2013
New Revision: 1430286

URL: http://svn.apache.org/viewvc?rev=1430286&view=rev
Log:
fix bug XGC-76; Dependant on FOP-2174 - Change to XGC to support the changes in FOP for image
scaling. Scaling by resolution is removed to avoid duplicate scaling.
Submitted by Robert Meyer (rmeyer at hotmail dot co dot uk) 

Modified:
    xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java
    xmlgraphics/commons/trunk/status.xml

Modified: xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java?rev=1430286&r1=1430285&r2=1430286&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java
(original)
+++ xmlgraphics/commons/trunk/src/java/org/apache/xmlgraphics/image/loader/impl/imageio/PreloaderImageIO.java
Tue Jan  8 13:52:58 2013
@@ -34,6 +34,7 @@ import org.apache.xmlgraphics.image.load
 import org.apache.xmlgraphics.image.loader.ImageSize;
 import org.apache.xmlgraphics.image.loader.impl.AbstractImagePreloader;
 import org.apache.xmlgraphics.image.loader.util.ImageUtil;
+import org.apache.xmlgraphics.util.UnitConv;
 
 /**
  * Image preloader for images supported by ImageIO.
@@ -96,8 +97,8 @@ public class PreloaderImageIO extends Ab
             }
         }
 
-        //Resolution (first a default, then try to read the metadata)
-        size.setResolution(context.getSourceResolution());
+        //Resolution set to default as scaling is now handled elsewhere
+        size.setResolution(UnitConv.IN2PT);
         ImageIOUtil.extractResolution(iiometa, size);
         if (size.getWidthPx() <= 0 || size.getHeightPx() <= 0) {
             //Watch out for a special case: a TGA image was erroneously identified

Modified: xmlgraphics/commons/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/commons/trunk/status.xml?rev=1430286&r1=1430285&r2=1430286&view=diff
==============================================================================
--- xmlgraphics/commons/trunk/status.xml (original)
+++ xmlgraphics/commons/trunk/status.xml Tue Jan  8 13:52:58 2013
@@ -39,6 +39,10 @@
   </contexts>
   <changes>
     <release version="Trunk" date="n/a">
+      <action context="Code" dev="CB" type="fix" fixes-bug="XGC-76" due-to="Robert Meyer">
+         Dependant on FOP-2174 - Change to XGC to support the changes in FOP for image scaling.

+         Scaling by resolution is removed to avoid duplicate scaling.
+      </action>	
       <action context="Code" dev="MH" type="update">
         Updated the JUnit tests to JUnit v4.
       </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: commits-help@xmlgraphics.apache.org


Mime
View raw message