Home   Help Search Login Register  

Author Topic: Overview Picture...  (Read 637 times)

0 Members and 1 Guest are viewing this topic.

KoniaX

  • Guest
Overview Picture...
« 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

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Overview Picture...
« Reply #1 on: 08 Aug 2004, 08:01:14 »
<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....
« Last Edit: 08 Aug 2004, 08:02:26 by HateR_Kint »
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

KoniaX

  • Guest
Re:Overview Picture...
« Reply #2 on: 08 Aug 2004, 08:21:16 »
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
« Last Edit: 08 Aug 2004, 08:21:26 by KoniaX »

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:Overview Picture...
« Reply #3 on: 08 Aug 2004, 10:38:17 »
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:

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Overview Picture...
« Reply #4 on: 08 Aug 2004, 15:47:04 »
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.
Plenty of reviewed ArmA missions for you to play

KoniaX

  • Guest
Re:Overview Picture...
« Reply #5 on: 08 Aug 2004, 18:20:53 »
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.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:Overview Picture...
« Reply #6 on: 08 Aug 2004, 21:20:26 »
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
« Last Edit: 08 Aug 2004, 21:22:35 by Planck »
I know a little about a lot, and a lot about a little.

KoniaX

  • Guest
Re:Overview Picture...
« Reply #7 on: 08 Aug 2004, 23:00:42 »
Screw it, I give up, I will never have an overview pic on any missions.