Documentation, Reference Materials and Tutorials for Envira Gallery
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.
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.
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
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.
3. Install the Envira CDN plugin
For the Installation Process, please follow the steps below:
envira-image-cdn.zip
plugin zip file from your local computer.Once the plugin has been uploaded, all you need to do is click Activate 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:
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.
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.
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.
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
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.
To check if an image is being served by the CDN on the frontend, follow the steps below:
src
attribute of the image tag <img>
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.
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:
This will remove the image from CDN, but the image will remain on the Media library.
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.
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.
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:
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 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 Code | Meaning | Simple Explanation |
---|---|---|
400 | Bad Request | The server couldn’t understand your request – maybe a typo or bad data |
408 | Request Timeout | The server waited too long for your request and gave up. |
413 | Payload Too Large | The file or data you tried to upload is too big for the server to handle. |
415 | Unsupported Media Type | The server can’t handle the type of file you’re uploading. |
429 | Too Many Requests | You’ve sent too many requests in a short time – try again later. |
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.
Envira Gallery: Create, Showcase, and Sell Your Work – Trusted by 150k+ Sites.
Enter the URL of your WordPress website to install
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.