Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » TIFF image too large to display?
TIFF image too large to display? [message #1807376] Tue, 28 May 2019 19:45
Page Mising name is currently offline Page Mising nameFriend
Messages: 31
Registered: July 2009
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)

Thanh you very much for the help!
Previous Topic:Howto run SWT 3.7 (Eclipse Indigo) under Mac OS X 10.14
Next Topic:TIFF image too large to display?
Goto Forum:
  


Current Time: Sat Nov 02 12:20:55 GMT 2024

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

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

Back to the top