benoitclaeys Posted October 2, 2016 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; Quote
benoitclaeys Posted October 2, 2016 Author Posted October 2, 2016 Additional info : - frame is created dynamically - same error when I load the image in the properties of the component. Quote
zilav Posted October 3, 2016 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. Quote
benoitclaeys Posted October 3, 2016 Author 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.... Quote
araujoadanr Posted March 17, 2017 Posted March 17, 2017 Please review http://forums.unigui.com/index.php?/topic/8139-tuniimage-error/ Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.