We use cookies to improve your experience, analyze traffic, and personalize content. By clicking "Accept all" you agree to storing them on your device. Read our privacy policy.

Server-side thumbnail

Server-side thumbnail

This doc shows how to set up server-side thumbnail rendering on Ubuntu with PHP and Chrome, so your site generates faster, sharper previews.

You can enable server-side thumbnail rendering by running Google Chrome in headless mode through PHP. Once Chrome is installed on your server, PHP can launch it to generate thumbnails directly on the server side.

By setting up server-side rendering, your system can produce higher-quality thumbnails more quickly, since the rendering happens on the server instead of relying on the client’s browser. This results in sharper previews, faster load times, and an overall smoother experience.

Ubuntu

This guide is written specifically for Ubuntu servers and will walk you through checking if Chrome is already installed and, if not, installing it.

Log in to Your Server via SSH

First, connect to your Ubuntu server using SSH.

Code
ssh username@your-server-ip

Replace username with your actual server user (often root or another admin user), and your-server-ip with the server’s IP address.

If this is your first time connecting, you may be asked to confirm the host fingerprint. Type yes and press Enter. Then enter your password or use your SSH key if configured.

Check if Google Chrome is Installed

Once logged in, check if Chrome is already installed:

Code
google-chrome --version

If Chrome is installed, you’ll see its version number.

If you see command not found, Chrome isn’t installed and you’ll need to follow the installation guide.

Install Google Chrome on Ubuntu

Update your package list:
Code
sudo apt update
Download the latest stable Google Chrome .deb package:
Code
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
Install the downloaded package:
Code
sudo dpkg -i google-chrome-stable_current_amd64.deb
Fix any missing dependencies:
Code
sudo apt --fix-broken install
Confirm the installation:
Code
google-chrome --version

Regenerate thumbnails

Head back to Mosaic and regenerate your thumbnails.

Mosaic interface showing the option to Generate thumbnails
  • If you encounter any errors, please contact us with the details so we can investigate and escalate the issue further.
  • If the process completes without errors, Google Chrome is correctly set up and server-side rendering is working.

Last updated: September 26, 2025

Still have more questions? Let us help!