Hi, I need to get width and height of a JPeg file from a CGI app, and it allways return 0 for both properties. If I test the same function on a GTK2 or Win32 application, the values are returned correctly. Is this a bug?.
function getWidth: Integer;
var
lJpeg: TJPEGImage;
begin
lJpeg := TJPEGImage.Create;
try
lJpeg.LoadFromFile('myimage.jpg');
Result := lJpeg.Width;
finally
lJpeg.Free;
end;
end;I'm using Lazarus and FPC from Trunk in Ubuntu 10.04 64bits.
