Captive Portal Image SIzes

  • 1
  • Question
  • Updated 4 years ago
  • Answered
what are the native size requirements for the Background image and the footer image. Whenever we add a footer image it always requires a scroll at the same time. I'd like to ensure its in the native captive portal sizing.
Photo of Curtis Kleier

Curtis Kleier

  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Curtis,

From Aerohive help system, which should be the same regardless of CWP type:
Modifying the Automatically Generated Login Page - Use Policy Acceptance
Using the HTML and image files preloaded in HiveManager is a convenient way to set up the web pages for a captive web portal. You can use the files as they are or customize them. To customize the login page, expand the Captive Web Portal Login Page Settings section, select Modify automatically generated web pages > Customize Login Page, use the following options to customize the pages to meet your needs, and then click Save. At any time during the customization process, click Preview to see how the modifications look, orReset to return the settings to their default values.
  • The use policy and the footer image are positioned relatively close to where they will eventually appear on the login page. This approximate layout provides a rough idea of how these components are used and how the page will appear when done.
Background Image: You can use one of the predefined background image files "default_hive.jpg" (the default), default_hex_light.jpg, or default_hex_dark.jpg, or you can import another image file to use. The only restriction is that the file cannot be larger that 128 kilobytes and its file name cannot exceed 32 characters.

Apply tiling to the background image: If you use one of the two images provided with a repetitive pattern—default_hex_light.jpg or default_hex_dark.jpg—or an imported image that lends itself to a repetitive tile pattern, select this option to tile the image so that it fills in the background. If you import a single large image, then clear this option.
To import a file, click the Add/Remove button. In the Add/Remove CWP Web Page Resource dialog box that appears, navigate to the file on your management system, select it, and then click Upload. The format for the image files can be any kind such as .jpg, .gif, .png, .tif, and so on. The only format types that are not allowed are .img and .img.S, which are reserved for HiveOS image files, and .pem, which is the format for certificates.

Foreground Color: This setting defines the color of the text in the foreground in the standard 8-bit per channel RGB triplet. By default, the foreground color is white (255, 255, 255). You can adjust the values of the three primary colors of red, green, and blue from 0 to 255.

Preview Language: You can modify the display language of the basic captive web portal pages. Choose a supported language from the drop-down list to preview how the customized captive web portal appears in that language. When you choose a language, the use policy text changes immediately. Click Save to commit your language selection.
You can also preview the completed CWP page in a particular language by clicking Preview, and then choosing the preview language from the Preview Language drop-down list.

Use Policy: This is a text file that states the company policy for network usage. A user can view the use policy by clicking the "Acceptable Use Policy" link on the login page during the captive web portal registration process. A generic policy is provided in the use-policy.html file. 
You can edit the text directly in the window; copy the text, edit it in a text editor, and then past the edited text back in place; or you can replace this text with that from a completely different source simply by copying the other text and pasting it over the text that HiveManager provides.

<span style="background-color: #FFFF00">Footer Image: By default, this is a graphic of the Aerohive logo. The file name is company_logo.png and its dimensions are 235 x 69 px at 300 ppi. If you replace this with a different image, make sure it has the same or nearly the same dimensions to avoid distortion. If you want to import a new image, such as a corporate name or logo, create a graphic file, save it to a local directory, and then click Add/Remove to import it to HiveManager.</span>
Regarding the background image, there is no default, but rather an HTML page built from many images. Feel free to export the default CWP pages to take a look:


Hope this helps
(Edited)
Photo of Curtis Kleier

Curtis Kleier

  • 2 Posts
  • 0 Reply Likes
Footer Image specifications was great.

I am looking for the background image.  I understand it can be tiled or not however I did try to post a picture and it shifted itself to the left and cut out.  I uploaded another and it didn't fill the screen.  I would like to know what the dimensions are for CWP Frame.
Photo of Brian Ambler

Brian Ambler

  • 245 Posts
  • 126 Reply Likes
Hi Curtis,

My apologies, I wound up editing my comment immediately after posting as I realized I had forgotten to address your question about the background image. It's been a very long time since I've done any significant work with HTML, but the comment I made above was as follows: "Regarding the background image, there is no default, but rather an HTML page built from many images. Feel free to export the default CWP pages to take a look".

The web pages are dynamic to scale to fit anything from an iPhone 4's screen to a large resolution 2K screen without having to have multiple copies of the CWP to fit each resolution.



So default_hive.png is a rather small, scalable image that can be used in multiple resolutions. This can be seen when looking at the stylesheet for the deafult CWP pages (in this case the eula.html page for the default Use Policy CWP):
<style type="text/css">
<!--
body{
background-color:#000000;
background-image: url(default_hive.png);
background-repeat: no-repeat;
background-attachment:fixed;
background-position: center;
font-family:Helvetica, Arial, sans-serif;
text-align:left;
width:400px;
margin:0 auto;
font-size:14px;
color: #FFFFFF;
padding:0 20px;
}

a{
color: #FFFFFF;
}

a:hover{
color: #FFFFFF;
}

p{
text-align:left;
font-size:14px;
}

.note{
width:200px;
font-size:12px;
line-height:14px;
color: #FFFFFF;
}

h1{
font-family:Century Gothic, Helvetica, Arial, sans-serif;
font-size:30px;
text-align:center;
font-weight:300;
}

h2{
color: #FFFFFF;
line-height:14px;
}

h3{
font-family:Century Gothic, Helvetica, Arial, sans-serif;
color: #FFFFFF;
text-align:center;
font-size:24px;
font-weight:300;
margin-bottom:40px;
}

.req:after{
color: #FFFFFF;
font-size:16px;
content:"*";
}

.login{
width:380px;
text-align:center;
margin:0px auto 60px;
}

.login input{
font-size:25px;
margin-bottom:10px;
width:300px;
color: gray;
}

.login_button{
float:right;
background: url(login.png) no-repeat;
width: 125px;
height: 40px;
border: 0px;
margin-top:10px;
cursor:pointer;

}

.register{
width: 388px;
text-align:center;
margin-top:30px;
margin:0 auto;
}

.register input{
font-size:20px;
margin-bottom:5px;
color: gray;
width:275px;
}

.reg_button{
float:right;
background: url(register.png) no-repeat 0px 5px;
margin-top:5px;
width: 125px;
height: 45px;
border: 0px;
cursor:pointer;
}

.error{
color: red;
text-shadow: 0 0 3px #000;
text-align:center;
font-size:14px;
line-height:14px;
}
-->
</style>
Hope this helps