Create Beautiful Responsive Photo & Video Galleries For Your Site in Minutes

Envira Gallery Documentation

Documentation, Reference Materials and Tutorials for Envira Gallery

Envira Gallery CDN

What is Envira CDN?

CDN (Content Delivery Network) is a service provided by Envira Gallery that will help load the gallery images faster by delivering them from servers that are near or close to your site visitors.

It’s like having copies of the gallery image stored in different places around the world. So when someone visits the site, the image is loaded from the closest location to them, which makes the image load faster.

For example, you live in the US, but your site is hosted in Europe. When someone visits the gallery, the image is loaded all the way from Europe, which can be slow. So with a CDN, images are also stored on servers in the US, so that visitors get the image much faster.

So using a CDN with Envira Gallery means all the gallery images will load more quickly, no matter where they are.

How does CDN help your site?

Basically, CDN helps to deliver the images from the nearest server to the visitors. That in result improves the loading speed and performance of the website.

Moreover, CDN handles most of the traffic, so the main server will have less pressure, which makes the site more stable.

To sum up, it makes your website faster, safer, and more stable.

How to purchase and install Envira CDN

Here’s a simple step-by-step guide on purchasing a CDN license. It also includes the steps to install and verifying the license key to get started:

1. Purchase a CDN license

To purchase the CDN license, please follow the steps below

  1. Click Envira CDN from the menu at the top of our site.
  2. Choose the plan that suits your needs.
  3. Complete the Purchase
Purchase Envira CDN License

2. Download CDN plugin

Once the purchase process is completed, log in to your Envira Gallery account. Then download the CDN plugin from the Downloads tab.

Click the Download Envira CDN button to download the plugin file.

Download CDN Plugin

3. Install the Envira CDN plugin

For the Installation Process, please follow the steps below:

  • Navigate to the WordPress Dashboard
  • Click on Plugins > Add New
  • Click on Upload Plugin > Choose File
  • Choose the envira-image-cdn.zip plugin zip file from your local computer.
Install CDN Plugin

Once the plugin has been uploaded, all you need to do is click Activate Plugin.

Activate Envira CDN Plugin

4. Verify license

Finally, you will need to verify your license key before accessing the features included. To verify the license key, please follow the steps below:

  1. Log in to your Envira Gallery Account
  2. Click on the Downloads tab
  3. Copy the license key you’ll find under Envira CDN
Copy Envira CDN License Key

License key verification screen

Now, log in to the WordPress Dashboard.

Once the Envira CDN plugin is successfully installed and activated, you’ll see Envira CDN added to your WordPress dashboard menu.

Click on Envira CDN.

You should see a pop-up message saying – Please enter a valid key to use the CDN features.

Click on Activate License and add the license key in the box. Once you have added the license key, click Verify Key.

Verify Envira CDN License Key

Now that your license key is verified, you can start setting up the Envira CDN to offload your gallery images and make your site load faster.

How to enable and have images served via Envira CDN

Using Envira CDN helps images load faster by delivering the image from the server closest to your visitors. It makes gallery image loading quicker and improves the performance.

Here’s how you can enable having images served via Envira CDN.

  1. Go to WordPress Dashboard
  2. Click on Envira CDN > Settings
  3. Enable the feature by switching Enable Envira CDN to ON.
Enable Envira CDN

After you turn on the Envira CDN option, a Bulk Offload Images button will appear, which will copy the images from the Media Library to the CDN so they load faster on your site

Click Bulk Upload Image

Once the process is completed, the image will start loading through the CDN. This means the image will load from the nearest server to the visitors.

How to check if images are being served via Envira CDN

To check if an image is being served by the CDN on the frontend, follow the steps below:

  • Go to a page with an Envira Gallery Image.
  • Right-click on the image and select Inspect
  • In the developer tools, look at the src attribute of the image tag <img>
  • If the URL starts with the CDN domain, like https://images.envira-cdn.com/, then the image is being served by the CDN.
Check If Image are being Served by Envira

How to enable automatic image resizing

The Image Transformation option available under Envira CDN helps improve your website performance by automatically resizing the images.

Enabling the feature ensures that images are only as large as necessary for each screen size. Essentially, it scales images down to the required size based on their intended display (e.g., thumbnails, mobile, or desktop).

Here’s how you can enable resizing the CDN image automatically.

  • Go to WordPress Dashboard
  • Click on Envira CDN > Settings
  • Enable the feature by switching Enable Transformations to ON.
Enable Image Transformations

How to remove an image from Envira CDN

When you enable Envira CDN and offload the images, they are copied from the WordPress Media library to the CDN server.

However, if you no longer want a specific image to be served from the CDN, you can remove the image. Doing so will stop the image from being served via the CDN.

Here’s how you can remove the image from Envira CDN:

  1. Go to WordPress Dashboard
  2. Click on Media > Library
  3. Find the image you want to remove and view the image
  4. Click ‘Remove from CDN” under the image
  5. Confirm the image deletion

This will remove the image from CDN, but the image will remain on the Media library.

Delete Image from CDN

CDN CLI Command

CLI (Command Line Interface) on WordPress allows you to interact with the plugin through the command line instead of making actual changes from the WordPress Dashboard.

To sum up, it is a way to interact with the plugin by typing commands into a terminal or command prompt, instead of using buttons and menus from the WordPress dashboard.

What is CDN CLI Command, and how to use it?

A CDN CLI Command refers to using the CLI to interact with the Envira CDN. This allows you to upload images, add, license key, offload images to CDN, and make other changes to CDN settings directly from the server rather than through the Envira plugin dashboard.

Where can I find the list of CDN CLI commands?

You can find the list of available CDN CLI Commands below:

Basic Commands

# List all available commands
wp envira-cdn

# Upload images to CDN
wp envira-cdn upload
wp envira-cdn upload --dry-run

# Set license key
wp envira-cdn set_license <license-key>

Feature Management

# Enable CDN
wp envira-cdn enable

# Enable image transformations
wp envira-cdn enable_transforms

# Exclude post from CDN
wp envira-cdn exclude_post <post-id>

Alternatively, you can also find the command in the Envira CDN settings. To view the command, please follow the steps below:

  1. Go to WordPress Dashboard
  2. Click on Envira CDN > Advanced
  3. Under the CLI Commands section, you can find the list of available CDN CLI Commands.
Envira CDN CLI Command

How to Set up WP-CLI on your Device?

Setting up WP-CLI is a quick and easy process. It lets you perform tasks like installing plugins, adding a license key, enabling Envira CDN, and a lot more directly from the terminal without accessing the WordPress Dashboard.

To get started, please follow this helpful setup guide from WPBeginner on WP-CLI Setup. This guide provides step-by-step instructions to set up WP-CLI on your Computer.

Error codes

Error codes on WordPress are the message that shows up when something goes wrong on your site. These codes help you identify the problems so you can fix them.

Below is the list of common error codes that might appear when using Envira Gallery, along with their meaning:

Error CodeMeaningSimple Explanation
400Bad RequestThe server couldn’t understand your request – maybe a typo or bad data
408Request TimeoutThe server waited too long for your request and gave up.
413Payload Too LargeThe file or data you tried to upload is too big for the server to handle.
415Unsupported Media TypeThe server can’t handle the type of file you’re uploading.
429Too Many RequestsYou’ve sent too many requests in a short time – try again later.

FAQs

Q: Do I need to manually offload the image every time I upload a new image to Envira Gallery?

A: No, you don’t need to manually offload each time. Once Envira CDN is enabled, any new images you upload will automatically be served by the CDN.

Q: How long does it take to offload 1000 images?

A: On average, it takes approximately ~51 minutes to offload 1000 images. This duration can vary depending on several factors, including the current queue, individual file sizes, and other system-related parameters.

Offloading images via the Command Line Interface (CLI) typically offers a slightly faster process.

Q: Will Envira CDN work with my theme?

A: Block themes and classic themes should work fine with Envira CDN, however, images used by themes that are not in the media library will not be loaded via the CDN.

The Best Drag and Drop WordPress Gallery Plugin

Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.

Enter the URL of your WordPress website to install

Please enable JavaScript in your browser to complete this form.

Upgrade to Envira Gallery Pro

Unlock even more powerful features designed to make your galleries even more beaituful.

Video Galleries

eCommerce

Social media Sharing

Adobe Lightroom

And much more!

Copyright © [#this year :%Y] Envira Gallery, LLC. Envira Gallery is a trademark of Envira Gallery, LLC.