suri1
suri1

Reputation: 21

TImageEnView not able to display some .jpg file

pImageEnView.IO.LoadFromFileJPEG(pFileName) doesnt not display some of the .jpg images but when i use pImageEnView.IO.LoadFromFileAuto(pFileName) the image are visible this also happened when i was using pImageEnView.IO.LoadFromFileBMP(pFileName) for .bmp file

Upvotes: 1

Views: 451

Answers (1)

David Heffernan
David Heffernan

Reputation: 612964

The explanation that fits the symptoms is that the file format does not match the file extension. Perhaps you have a .jpg file that is really a Windows bitmap file. Or some other format.

Debug and diagnose this by looking at the files in a hex editor. All common image file formats begin with a header that identifies the format.

Upvotes: 2

Related Questions