Skip to main content



      Home
Home » Eclipse Projects » Eclipse 4 » TIFF image too large to display?
TIFF image too large to display? [message #1807426] Wed, 29 May 2019 13:04 Go to next message
Eclipse UserFriend
Hi,

I am getting following error when trying to display a large TIFF image. I am wondering if there is a limit on the image size/dimension?

Is there way to shrink the image and then display it?

For this particular image:
Dimension: 18665x13296
Resolution: 400dpi (horizontal and veritical)
Bit Depth: 24
Compression: LZW


java.lang.OutOfMemoryError: Java heap space at org.eclipse.swt.internal.image.TIFFDirectory.decodePixels(TIFFDirectory.java:157) at org.eclipse.swt.internal.image.TIFFDirectory.read(TIFFDirectory.java:499) at org.eclipse.swt.internal.image.TIFFFileFormat.loadFromByteStream(TIFFFileFormat.java:65) at org.eclipse.swt.internal.image.FileFormat.loadFromStream(FileFormat.java:59) at org.eclipse.swt.internal.image.FileFormat.load(FileFormat.java:90) at org.eclipse.swt.graphics.ImageLoader.load(ImageLoader.java:155) at org.eclipse.swt.graphics.ImageDataLoader.load(ImageDataLoader.java:25) at org.eclipse.swt.graphics.ImageData.<init>(ImageData.java:335) at org.eclipse.jface.resource.URLImageDescriptor.getImageData(URLImageDescriptor.java:125)


Thank you very much for the help!
Re: TIFF image too large to display? [message #1807478 is a reply to message #1807426] Thu, 30 May 2019 15:56 Go to previous messageGo to next message
Eclipse UserFriend
It is indeed quite large: 18665x13296x32 /8/1024/1024= 946.7MB

The OutOfMemoryError is a standard JVM error thrown when you exceed the maximum heap. Try increasing the heap (see option -Xmx in eclipse.ini)

[Updated on: Thu, 30 May 2019 15:56] by Moderator

Re: TIFF image too large to display? [message #1807482 is a reply to message #1807478] Thu, 30 May 2019 16:48 Go to previous message
Eclipse UserFriend
With increase the setting to -Xms1024m -Xmx4g, I am able to bypass the OutOfMemory issue now.

Just increase Xmx doesn't help.

Thanks!
Previous Topic:Linking Handled Tool and Menu Items
Next Topic:Invalid context error
Goto Forum:
  


Current Time: Sat Jul 12 16:48:51 EDT 2025

Powered by FUDForum. Page generated in 0.04891 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top