[fpc-pascal] Why is FPImage dog slow in reading jpeg's?

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Mon May 30 20:17:13 CEST 2011

michael.vancanneyt at wisa.be wrote:
> Try the following code:
> Img:=TFPMemoryImage.Create(0,0);
> Img.UsePalette:=False;
> Img.loadFromFile(FileList[i]);
> That should work much faster. The reason is probably that the default image
> created by the reader uses a palette, which is of course dog slow when 
> reading large images.

Pardon me for jumping in, but is there an equivalent fix for slow 
operations in a TLazIntfImage?

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list