[Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Luca Olivetti via lazarus
Before reporting an issue, I wanted to ask. I have a strange issue with TImage and lazarus 2.2.2: if (at designtime) I load a png or a jpg image in a TImage but at runtime it is blank. Worse, if I copy paste it, I get a streaming read error on Data (either when pasting or when running the progr

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Luca Olivetti via lazarus
El 23/6/22 a les 13:29, Luca Olivetti via lazarus ha escrit: I tested under both linux(qt5) and windows and the behavior is the same (the only difference is that under windows I use fpc 3.2.0 with lazarus 2.0.12 and 3.2.2 with 2.2.2, while under windows I use fpc 3.2.2 for both). Windows 32 bi

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Luca Olivetti via lazarus
El 23/6/22 a les 13:29, Luca Olivetti via lazarus ha escrit: I self build lazarus from the git sources, so maybe it is something in my environment. I found the cause: it's the VampyreImaging library. If I install it in the ide, it will stream png as "TImagingPNG" instead of "TPortableNetwork

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Mattias Gaertner via lazarus
On Thu, 23 Jun 2022 20:38:59 +0200 Luca Olivetti via lazarus wrote: >[...] > I don't understand why the ide prefers one class over the other, I > guess they are all treated the same and the one registered last wins? Correct. See TPicture.RegisterFileFormat Mattias -- __

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Luca Olivetti via lazarus
El 23/6/22 a les 21:40, Mattias Gaertner via lazarus ha escrit: On Thu, 23 Jun 2022 20:38:59 +0200 Luca Olivetti via lazarus wrote: [...] I don't understand why the ide prefers one class over the other, I guess they are all treated the same and the one registered last wins? Correct. See TPic

Re: [Lazarus] Strange issue with TImage and lazarus 2.2.2

2022-06-23 Thread Mattias Gaertner via lazarus
On Fri, 24 Jun 2022 00:05:02 +0200 Luca Olivetti via lazarus wrote: > El 23/6/22 a les 21:40, Mattias Gaertner via lazarus ha escrit: > > On Thu, 23 Jun 2022 20:38:59 +0200 > > Luca Olivetti via lazarus wrote: > > > >> [...] > >> I don't understand why the ide prefers one class over the other