imaginglib icon indicating copy to clipboard operation
imaginglib copied to clipboard

Cannot open big images, size limitet of LongInt, not Int64

Open jonyrh-td-sever opened this issue 1 year ago • 2 comments

Cannot open big images, size limitet of LongInt, not Int64..

May bi, add compile defines for CPU x86_64 to use big images? And open images in stream as TFileStream for not use RAM?

jonyrh-td-sever avatar Apr 02 '24 06:04 jonyrh-td-sever

That's right, size in TImageData should be Int64 or NativeInt rather. More troubles would be with some IO functions and some image format loaders/savers. What are you most interested in?

I used memory mapped files as Bits in TImageData for big images in a project using Imaging many years ago - I'll see if it could be resurrected (at least as a demo).

galfar avatar Apr 24 '24 00:04 galfar

I think NativeInt will be more compatible, since you won't have to create separate code for different compiler directives like {$DEFINE CPUX86_64}. And thanks for the answer! :-)

jonyrh-td-sever avatar Apr 24 '24 03:04 jonyrh-td-sever