• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - kusdogan

1
let me make a correction. it's also related with size. If image file is 32b and greater than 90MB, it fails.
2
I checked it from OpenJPEG web site and realized that library does not support 32b BMP files. After i convert it to 24b it worked. It was not related with size.
3
below code gives access violation if fSource is a bmp file larger than 90 mb (i last tried with 115 mb) and fDest is jp2.  Is it because of TSingleImage ? It works very good for all other bmp files.

Imaging Library Version: 0.26.4
Compiler: Delphi 2007
OS: Windows Vista Ultimate



var
    mImage: TSingleImage;
begin
   fSource := 'C:\x.bmp';
   fDest := 'C:\x.jp2';

    mImage := TSingleImage.Create;
    mImage.LoadFromFile(fSource);

    Imaging.SetOption(ImagingJpeg2000LosslessCompression, 1);

    try
      mImage.SaveToFile(fDest);
    finally
      mImage.Free;
    end;

end;
SMF spam blocked by CleanTalk