Home   Help Search Login Register  

Author Topic: html problem  (Read 583 times)

0 Members and 1 Guest are viewing this topic.

Xai

  • Guest
html problem
« on: 23 Feb 2005, 22:57:00 »
Back again! :P Overview problem, it says it can't find the graphic I prepared for the overview. I put the graphic in the mission folder as a jpeg. Basically, I'll just copy and paste the section of html relating to the picture. I think I must have done something wrong, what though? I don't know.

<br>
<p align="center"><img src="overviewpicture.jpeg" width="314" height="310"></p>
<br>
« Last Edit: 23 Feb 2005, 22:57:18 by Xai »

Offline XCess

  • Former Staff
  • ****
Re:html problem
« Reply #1 on: 23 Feb 2005, 23:05:39 »
make the image 256x128 and try again... think that's the right size...
« Last Edit: 23 Feb 2005, 23:05:58 by XCess »

Offline RujiK

  • Members
  • *
  • KoKo Puh-Fizzles!
Re:html problem
« Reply #2 on: 23 Feb 2005, 23:31:38 »
The picture you are trying to be in the overview and the display size I believe both have to be powers of 2 (ie:256 x 512).
I like your approach, lets see your departure.
Download the New Flashlight Script!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:html problem
« Reply #3 on: 24 Feb 2005, 00:33:47 »
The file must be saved with sides a power of two in pixels.    However, the display size can be anything you want.    

In other words, you create the picture that you actually want.   Save it with sides a power of two, which distorts the image but it doesn't matter because when you define the size in overview.html you use the original (undistorted) dimensions.

Usually when you screw up on the dimensions you get an error message.     If it says file not found then you've misnamed either the file, or the code.     I'm no expert but I always thought the actual file extension was .jpg, commonly pronounced jaypeg, not .jpeg
Plenty of reviewed ArmA missions for you to play

Xai

  • Guest
Re:html problem
« Reply #4 on: 24 Feb 2005, 08:58:42 »
Thanks all. The mission will be available shortly in the Mission Depot! :)

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:html problem
« Reply #5 on: 24 Feb 2005, 09:13:48 »
erm.... you have beta tested it first, right?

just checking...  :-\

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:html problem
« Reply #6 on: 24 Feb 2005, 10:58:29 »
I would hope so.   Only about 10% of untested missions are even functional.    
Plenty of reviewed ArmA missions for you to play

Xai

  • Guest
Re:html problem
« Reply #7 on: 24 Feb 2005, 19:46:47 »
:-\ Not functional? Mmm, well, whatever. I'll beta test it then but I can assure you it works. Except for this damn overview picture which is still giving me the same gip. I'm using jpeg, I was fairly certain that was supported, it is, right?

Offline bedges

  • Administrator
  • *****
    • OFPEC The Editing Center
Re:html problem
« Reply #8 on: 24 Feb 2005, 19:54:13 »
yes indeed, .jpg is supported.

as gubes mentioned above, you may want to make sure the file extension is .jpg rather than .jpeg. what difference this makes i'm not sure, suffice it to say .jpg files always work for me.

check the names match perfectly, both the filename and the name used in the overview. that's the only reason i can think that it wouldn't be found.

are you using photoshop by any chance? what are the original dimensions of your image, in pixels? not the dimensions in your html file, the actual size. if the size was the problem, again as gubes points out, it would give a different error, but just in case...

Xai

  • Guest
Re:html problem
« Reply #9 on: 24 Feb 2005, 21:53:19 »
How odd, it seemed to simply be the file extension! .jpg works, jpeg. doesn't. Meh, how strange.