[Lazarus] TImage wrong image format

Leonardo M. Ramé l.rame at griensu.com
Fri Nov 26 13:39:30 CET 2010

Hi, I think I found a bug after following the next steps:

1) Place a TImage on a newly created form.
2) Click on "..." on Object Inspector -> Picture and load an image (I
tested with jpeg, png, png all with the same results).
3) Go to the form, and you'll see the image.
4) Right click on the form and select View Source (.lfm), here you can
see the object Image1 and its Picture.Data containing the image info.
5) Close the .lfm tab
6) Press F12 to see the form again and you'll get this error:

Component Class: TImage
Error reading Image1.Picture.Data: Wrong imagre format
Stream position: 28777"

I'm using:

Free Pascal Compiler version 2.5.1 [2010/11/24] for x86_64 - Linux
Lazarus 0.9.29 - Rev 28470 - x86_64-linux-gtk 2
Leonardo M. Ramé

More information about the Lazarus mailing list