Overview
For white-label configurations, the logo file must be hosted at a publicly accessible URL. If you do not have an existing website or hosting location available, GitHub can be used as a free hosting option to upload the logo and generate a direct image URL.
This guide explains how to upload a logo to GitHub and obtain a raw image link that can be used for white-label branding.
Requirements
Before starting, make sure you have:
- A GitHub account
- A logo file ready for upload
Recommended logo formats:
- PNG (recommended)
- SVG
- JPG/JPEG
For best results, use a transparent PNG logo with appropriate dimensions.
Step 1: Create a GitHub Account
-
Navigate to:
-
Select:
Sign Up
- Complete the registration process.
- Verify your email address.
Step 2: Create a Repository for the Logo
- Log into GitHub.
- Click the + icon in the upper-right corner.
-
Select:
New repository
-
Configure the repository:
Repository name:
company-logo -
Set the repository visibility to:
Public
A public repository is required so the logo can be accessed externally.
-
Click:
Create repository
Step 3: Upload the Logo File
- Open the newly created repository.
-
Click:
Add file → Upload files
-
Drag and drop your logo file into the upload area.
Example:
company-logo.png -
Scroll down and click:
Commit changes
The logo is now stored in your GitHub repository.
Step 4: Obtain the GitHub File Link
- Click the uploaded logo file.
- Copy the URL from the browser.
Example:
https://github.com/username/company-logo/blob/main/company-logo.pngThis URL points to the GitHub webpage displaying the file and should not be used for white-label configuration.
Step 5: Convert the Link to a Raw Image URL
The GitHub file URL must be converted into a raw URL.
Original format:
https://github.com/USERNAME/REPOSITORY/blob/main/FILE.pngConvert it to:
https://raw.githubusercontent.com/USERNAME/REPOSITORY/main/FILE.pngChanges made:
- Replace:
github.comwith:
raw.githubusercontent.com- Remove:
/blobExample
GitHub URL:
https://github.com/cyberplex/company-logo/blob/main/logo.pngRaw URL:
https://raw.githubusercontent.com/cyberplex/company-logo/main/logo.pngStep 6: Verify the Raw Link
- Open the raw URL in a browser.
- Confirm that:
- The image loads directly.
- No GitHub page is displayed.
- The URL ends with the image extension.
Example:
https://raw.githubusercontent.com/cyberplex/company-logo/main/logo.pngIf the image loads correctly, this URL can be provided for white-label branding.
Troubleshooting
The image does not load
Verify:
- The repository visibility is set to Public.
- The filename and capitalization are correct.
- The URL uses:
raw.githubusercontent.com- The image file exists in the repository.
The logo appears broken after configuration
Check:
- The raw URL opens successfully in an incognito/private browser window.
- The logo file is not restricted by GitHub permissions.
- The image format is supported.
Summary
The final URL used for white-label branding should follow this format:
https://raw.githubusercontent.com/USERNAME/REPOSITORY/main/LOGO_FILENAME.pngThis provides a publicly accessible direct link to the hosted logo file.
Comments
0 comments
Please sign in to leave a comment.