Jump to content
Sign in to follow this  
DArmstrong

Help getting an image to appear in the briefing.

Recommended Posts

Hi All,

TIA for you help. I create a briefing with "Briefing Manager" and all works well except getting an image to appear in the notes. I have placed the image in the mission folder and have this code in the notes to call it:

player createDiaryRecord ["Diary",["Note 1","This is the notes section. This is an image insertion<img image='arma2logo.jpg' width='200' height='200'/>"]];

I used photoshop elements to size the image to 200 x 200 pixels.

I get an error at the briefing saying. arma2logo.jpg is 200x200 not 2^n?

I'm sure I am missing something in the preparation of the image or the code n the briefing. Thanks.

Share this post


Link to post
Share on other sites

2^n means that you have to use a 2 power. So the picture must be 256x256 or 512x512 or 1024x1024 and so on.

Share this post


Link to post
Share on other sites

This worked perfectly. Thank you very much. The insert image button listed a size of 200 x 200 so I just sized the jpg to 200x200. I know now that the original must be as you say, a power of 2. Thanks again.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×