Bas van den Broek wrote: > I created a sample fo file which links to an image. This image is in jpg > format and about 1 mb in size. I also included the image. > > When converting this using xfc 4.4, the resulting .doc file is over 12 mb in > size. Is there any way for you to compress this image in the .doc file? > > I also converted to .docx and even then the file is 9 mb in size. I unzipped > the .docx file and looked at the image folder and saw the image was converted > to a .png file. Is this always the case for .docx files or can this simply be > the original jpg as well?
[email protected] wrote: > We'll try to implement this enhancement (i.e. do not convert JPEG images > to PNG) in next release. However such release is not planned before > several months. > We have tried not to automatically convert JPEG images to PNG in the next version of XFC. However, there is no way to make Java[*] save a JPEG image having some resolution information. When we (or other Java developers) attempt to do that we get: --- Exception in thread "main" java.lang.NullPointerException at com.sun.imageio.plugins.jpeg.MarkerSegment.getAttributeValue(MarkerSegment.java:131) at com.sun.imageio.plugins.jpeg.JFIFMarkerSegment.updateFromNativeNode(JFIFMarkerSegment.java:240) at com.sun.imageio.plugins.jpeg.JFIFMarkerSegment.<init>(JFIFMarkerSegment.java:133) at com.sun.imageio.plugins.jpeg.JPEGMetadata.setFromNativeTree(JPEGMetadata.java:2184) at com.sun.imageio.plugins.jpeg.JPEGMetadata.setFromTree(JPEGMetadata.java:2149) at com.xmlmind.fo.graphic.GraphicFactoryImpl.setResolution(GraphicFactoryImpl.java:453) at com.xmlmind.fo.graphic.GraphicFactoryImpl.writeImage(GraphicFactoryImpl.java:374) ... --- Therefore we are really sorry but we'll not be able to implement this enhancement in the next version of XFC. --- [*] The situation is probably different for .NET. However we prefer to keep the Java and .NET versions of XMLmind XSL-FO Converter in sync in term of functionalities. -- XMLmind FO Converter Support List [email protected] http://www.xmlmind.com/mailman/listinfo/xfc-support

