Hello,
I’m using Vampyre Imaging Library Version 0.24.0 in my Delphi application.
I successfully open a jpeg 2000 (JP2) lossless compressed file (
http://rapidshare.com/files/69263058/Original.jpg.html) using the following code:
image := TSingleImage.Create;
image.LoadFromFile(OpenDialog1.FileName);
When I save it (also lossless compression: Jpeg2000DefaultLosslessCompression = True) with the following code: image.SaveToFile('c:\mac.jp2');
I get the following problems:
1. The file size differs from the original
2. If I set Jpeg2000DefaultCodeStreamOnly = False then my image viewer program (XnView 1.80.3) fails to open it. The file is not the same anymore as the original. (however Vampyre Imaging Library can open the file). (Result file:
http://rapidshare.com/files/69263385/CodeStreamFalse.jpg.html)
3. If I set Jpeg2000DefaultCodeStreamOnly = True then the image is J2K not JP2, I need JP2.
What should I do to get an image exactly like the original one?
If you know the answer please help me.
Thank you.