My code from above has a strange behavior: If (and only then) a PNG image was previously loaded in the TImage before the JFIF image then the JFIF is not displayed in the TImage under certain conditions.
So I now load the JFIF with this code and it always works well:
TPicture.RegisterFileFormat('jfif', 'JFIF Image File', TJPEGImage);
ThisJPEGImage := TJPEGImage.Create;
try
ThisJPEGImage.LoadFromFile('MyImage.jfif');
timageImage.Picture.Bitmap.Assign(ThisJPEGImage);
finally
ThisJPEGImage.Free;
end;
(Of course RegisterFileFormat should be executed only once at program start)