Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » TIFF image too large to display?
TIFF image too large to display? [message #1807426] Wed, 29 May 2019 17:04 Go to next message
Page Wang is currently offline Page WangFriend
Messages: 27
Registered: July 2009
Junior Member
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 19:56 Go to previous messageGo to next message
Alexandros Karypidis is currently offline Alexandros KarypidisFriend
Messages: 135
Registered: March 2010
Senior Member
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 19:56]

Report message to a moderator

Re: TIFF image too large to display? [message #1807482 is a reply to message #1807478] Thu, 30 May 2019 20:48 Go to previous message
Page Wang is currently offline Page WangFriend
Messages: 27
Registered: July 2009
Junior Member
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: Mon Dec 09 07:41:32 GMT 2019

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

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

Back to the top