OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: KoniaX on 08 Aug 2004, 07:45:24
-
Could someone please tell me what I'm doing wrong. ALL I want to do is add an overview picture to my missions. I have teh overview pic in the mission folder named "untitled". Its a JPEG image. In the overview, my line of code is like this:
<p align = "center"><img src="untitled.jpg" width "144" height="80"></p></center>
Am I writing the code wrong? ??? Does the picture have to be a specific title? ??? Argh somebody help! :P
-
<p align = "center"><img src="untitled.jpg" width="144" height="80"></p>
And remember that the picture itself has to be in powers of two (or wth it was ::) ) in size, like 64x64,32x128,512x1024,128x256, etc., etc....
-
As of now my code is like this:
<p align = "center"><img src="bmp2.jpg" width="144" height="80"></p>
When I try and play it, I get the error message:
"Image Missions/__cur_sp_.abel/untitled.jpg: dimensions 191x128 not 2^n"
Is that what you were talking about the powers of two? Argh I'm gonna sleep on it. :P
-
I posted a list that pretty much covers all ^2 numbers some day ago. Anyway, here is it again:
2, 4, 8, 16, 32, 64, 96, 128, 192, 256, 512, 1024
There is no doubt that there are more than this but you should do fine with these.
:beat: *Get Shot* :beat:
-
Now, gentlemen, we're all getting confused here.
The .jpg file must have sides a power of 2 in pixels. 64, 128, etc.. That is the problem here. It doesn't.
However, the picture displayed in the Overview can be any shape you want. For example 144x80. So you create the picture, make it look beautiful at 144x80 but save it as (say) 128x64. Thus the saved file is "distored", but it appears correctly as 144x80 in the Overview.
-
Ok, now my code looks like this:
<p align = "center"><img src="bmp2.jpg" width="256" height="128"></p>
But it gives me an error message:
"Image Missions/__cur_sp_.abel/untitled.jpg: dimensions 96x64 not 2^n"
even though I specifically told it to make it 256x128.
This is really starting to piss me off. >:( ??? >:( BTW, I'm using Microsoft Picture Manager to edit my picture.
-
Your actual picture also needs to be sized in powers of 2.
This part:
<p align = "center"><img src="bmp2.jpg" width="256" height="128"></p>
Specifies the dimensions you want the picture to be displayed at.......BUT.......the picture itself must also be sized in powers of 2.
96 is not actually a power of 2.
Planck
-
Screw it, I give up, I will never have an overview pic on any missions.