Using Delphi 11.3 and latest ImageEN as of today.
I have an issue, where please don't get hooked up on the why its an issue... it just is...... out of my control on the panic.
I reduce the code down to this, very simple.
Take any JPG input.
Save it back out.
Simple.
The "problem" is the file that is created in 32bit and 64bit don't match.
Example would be
input = 216,709 bytes
32bit output = 205,209 bytes
64bit output = 201,966 bytes
The issue is, everyone expects the file sizes on the output to be the same.
And it is not.
Again, on the high level, this doesn't seem like a big deal.
But we are dealing with a process among thousands of servers, millions ( maybe close to billions? ) of images now.
And for that process, this is an issue....
I know it sounds odd/dumb, but its the problem I am now tasked on figuring out.
procedure DoImage;
begin
var
Image := TImageEn.Create(nil);
Image.io.LoadFromFile('in.jpg');
{$IFDEF WIN64}
Image.io.SaveToFileJpeg('out-64.jpg');
{$ELSE}
Image.io.SaveToFileJpeg('out-32.jpg');
{$ENDIF}
Image.Free;
end;
Using C# to do similar code, 32bit vs 64bit, makes 1:1 files.
Exactly the same.