benoitclaeys Posted October 2, 2016 Share Posted October 2, 2016 Hello, I try to load an image And I get this message : ...TUniImage : Unknonw picture file extension (.nnn) On the server unit I define the DefaultImageformat = PNG this error occur here in my code : procedure TUniFrameMainHome.UniFrameCreate(Sender: TObject);begin try UniImageLogo.Picture.LoadFromFile(UniServerModule.StartPath + 'images\FrameHome\My Logo.PNG'); except end ;end; Link to comment Share on other sites More sharing options...
benoitclaeys Posted October 2, 2016 Author Share Posted October 2, 2016 Additional info : - frame is created dynamically - same error when I load the image in the properties of the component. Link to comment Share on other sites More sharing options...
zilav Posted October 3, 2016 Share Posted October 3, 2016 Drop TUniHTMLFrame with <img> html tag inside pointing to your image. Honestly I don't see any point in TUniImage component at all. It was probably added for easier migration of existing Delphi projects I guess. For new projects just use ordinary html, much fore flexibility. Link to comment Share on other sites More sharing options...
benoitclaeys Posted October 3, 2016 Author Share Posted October 3, 2016 Thanks for this answer. For new other projects I will follow your recommendation. if somebody can help me about TuniFrame with TUniImage with this message.... Link to comment Share on other sites More sharing options...
araujoadanr Posted March 17, 2017 Share Posted March 17, 2017 Please review http://forums.unigui.com/index.php?/topic/8139-tuniimage-error/ Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now