We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Native JAI and ImageIO on Windows with 64bit JDK

Hi,

we try to convert docx-Files with embedded TIFF images to JPG and faced the problem, that TIFFs are not displayed in the converted file.

Native JAI and ImageIO are listed as required for Aspose.Words if processing TIFF, but we ran into the problem, that we are running a 64-bit JDK, because we need much more heap, than the 32-bit JDK can provide. 32-bit is limited to less than 2GB.

Is there a possibility to process TIFF files with 64-bit JDK? Which other formats or actions are limited without JAI?

Kind regards, Josef

@josef.auer1,

Thanks for your inquiry. Unfortunately, we do not provide API that are limited without JAI to process TIFF images. Please refer to the following article.
System Requirements

Thanks for your reply. Is it possible to list features which will not work without JAI?
Is there a benefit if I would include JAI without native code?

Thanks!

@josef.auer1,

Thanks for your inquiry. Please note that Aspose.Words for Java depends upon the Java Advanced Imaging (JAI) package from Sun in order to process some image formats such as TIFF. You need to include JAI jar files in your application. The image formats such as TIFF do not display in output if you do not use JAI.

Is it enough to include the JAR-Files only? Or do we need the native code too?

Can you give me some information, which jars should be included?

@josef.auer1,

Thanks for your inquiry. You only need to include JAI Jar files in your application.

Please refer to the following article.
Installing Native JAI and ImageIO

Thanks for your input, I added this dependencies and it works. It would be great if you complete the infos at the given location (link), that it’s also possible to include jar files only.

Regards, Josef

<dependency>
		<groupId>javax.media</groupId>
		<artifactId>jai-core</artifactId>
		<version>1.1.3</version>
	</dependency>
	<dependency>
		<groupId>com.github.jai-imageio</groupId>
		<artifactId>jai-imageio-core</artifactId>
		<version>1.3.1</version>
	</dependency>
	<dependency>
	    <groupId>com.sun.media</groupId>
	    <artifactId>jai-codec</artifactId>
	    <version>1.1.3</version>
	</dependency>

@josef.auer1,

Thanks for your feedback. It is nice to hear from you that your problem has been solved. There is no need to include native code of JAI in your project and this information is not mentioned in system requirements article. Please let us know if you have any more queries.