ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 16-bit greyscale JP2 files with height > 8192
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Nick Brett

United Kingdom
5 Posts

Posted - Feb 26 2019 :  12:03:17  Show Profile  Reply
I have ImageEn version 8.1.2_13502 installed, which provides ielib64.dll version 4.5.2.0. I am using Delphi code similar to this to convert 16-bit greyscale tif images to jp2:

  Image := TImageEnIO.Create(nil);
  try
    Image.NativePixelFormat := True;
    Image.LoadFromFile('InFile.tif');
    Image.Params.J2000_Rate := 1
    TheSrcImage.SaveToFileJP2('OutFile.jp2');
  finally
    Image.Free;
  end;


The call to SaveToFileJP2 works well unless the number of pixel rows exceeds 8192. Has this been fixed in the more recent version of ImageEn?

Thanks

xequte

38180 Posts

Posted - Feb 26 2019 :  21:24:52  Show Profile  Reply
Hi Nick

What is the error that you encounter? Out of Memory?



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Nick Brett

United Kingdom
5 Posts

Posted - Feb 27 2019 :  05:36:12  Show Profile  Reply
Hi, thanks for your support, it's appreciated. We do have to save some very long 16-bit grey-scale images sometimes.

TForm43:Access violation at address 00000000055ED188 in module 'ielib64.dll'. Write of address 0000000005A2F000
iej2000.IEJP2K_imageEncode + $CF
iej2000.J2KWriteStream + $B64
imageenio.TImageEnIO.SaveToStreamJ2000 + $71
imageenio.TImageEnIO.SaveToFileJP2 + $E6

It seems the image width is not limited by this bug. If the length of the image is less than or equal to 8192 pixels then the file save works fine, but greater than 8192 and it always crashes exactly as above. It's a 64-bit app with a fully-updated Windows 10 professional OS and with 64 GB of PC memory, I don't know if that's important

Thanks. Nick.
Go to Top of Page

xequte

38180 Posts

Posted - Mar 03 2019 :  13:27:23  Show Profile  Reply
Thanks Nick

We are investigating a solution.



Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Nick Brett

United Kingdom
5 Posts

Posted - Oct 15 2019 :  11:31:58  Show Profile  Reply
Any news on this issue? Has the problem been fixed with a later version of ImageEN? I'd like to know if it's worth upgrading.
Go to Top of Page

xequte

38180 Posts

Posted - Oct 15 2019 :  16:58:05  Show Profile  Reply
Hi

Yes, this was fixed in 5.1.0 when we updated the JPEG2000 library.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Nick Brett

United Kingdom
5 Posts

Posted - Oct 16 2019 :  04:25:36  Show Profile  Reply
Thanks Nigel, that's excellent news.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: