PixHub
Sharing and Embedding

Sharing and Embedding

Sharing links

On the page of any public file you'll find buttons for quickly copying links:

  • Page link - sends the user to the file's full page
  • Direct link - the URL of the raw file, usable in <img>, <video> tags, or as a CSS resource
  • Thumbnail - the URL of the preview image
  • BBCode - formatted code for forums and platforms that support BBCode
  • Markdown - Markdown syntax for documentation or READMEs

Embedding in web pages

Files can be embedded directly into any web page using an <iframe>. The embed code is available on each file's page and looks like this:

<iframe src="https://pixhub.ro/embed/i/{slug}"
        width="800" height="600"
        frameborder="0" allowfullscreen>
</iframe>

The embed displays the file without the platform's navigation bar, making it ideal for embedding in articles or showcase pages.

Embedding an album

Albums can also be embedded as interactive galleries:

<iframe src="https://pixhub.ro/embed/a/{slug}"
        width="100%" height="500"
        frameborder="0">
</iframe>

Using the direct link

The direct link lets you display the image anywhere an image URL is accepted:

<img src="https://pixhub.ro/i/{slug}.jpg" alt="description">
Note: Don't use direct links as the primary source for critical images on very high-traffic sites without first contacting our team. Private content cannot be accessed via a direct link by unauthorized users.