Lana Image Optimizer

"Lana Image Optimizer" v1.2.0 Documentation by "Lana Codes"


Introductory

With the help of the "Lana Image Optimizer" you can convert the uploaded images into small sized JPG's.


If it's turned on, "Lana Image Optimizer" automatically converts and optimizes the images when you upload them.


The "Lana Image Optimizer" plugin is WordPress 5.9 compatible.

It has been tested on the following browsers:

  • Firefox
  • Google Chrome
  • Opera
  • Internet Explorer

You must enable JavaScript in your browser to use this plugin.

The plugin primarily uses GD extension library.

These image libraries can be used optionally: Imagick, Gmagick


Support

If you have any more questions, feel free to contact us at: https://codecanyon.net/user/lanacodes

Created: 08/10/2018
Updated: 05/21/2022
By: Lana Codes
E-mail: [email protected]



Installation

1. Install WordPress

Download and Install WordPress 4.1 (or higher).


2. Upload Plugin via FTP

Upload "Lana Image Optimizer" plugin folder via FTP into /wp-content/plugins directory.

or

2. Upload Plugin in WordPress Admin

In WordPress Admin Panel go to Plugins > Add New > Upload Plugin and upload .zip plugin file.


3. Active plugin

In WordPress Admin Panel go to Plugins > Installed Plugins.

Select "Lana Image Optimizer" theme and click Activate button.

Plugin files

"Lana Image Optimizer" plugin: /lana-image-optimizer.zip



Overview

Lana Image Optimizer general overview

To view "Library Optimizer" go to the Media > Library Optimizer page.

Here you can convert and optimize all the images uploaded into the Media Library.

To view "Media Image Optimizer" go to the Media > Library (list mode) > Edit page.

Here you can convert and optimize the already uploaded images.



Settings

Lana Image Optimizer settings

Optimizer Settings

Automatic Optimization: You can set the "Lana Image Optimizer" to automatically convert all the uploaded images into JPG's, and optimize them.
options: Disabled, Enabled
default: Disabled

Default Quality: You can change the default optimalization percentage of the "Lana Image Optimizer", which determines the guality of the uploaded image.
options: between 20-100%
default: 75%



Library Optimizer

This is how you can convert and optimize all of the images that's already uploaded into the Media Library


1. choose the settings

Choose the quality of the image.


2. optimize the images

Click on the "Optimize!" button and the "Lana Image Optimizer" is going to convert and optimize the images.

You can find detailed information about the process in Process Status and Process Log.



Media Image Optimizer

This is how you can convert and optimze more than one images uploaded into the Media Library


1. switch to list view

If you are in grid view, click on the list view icon positioned on the top.


2. bulk action on the choosen images.

Choose the images you want to convert and optimize.

On the bulk actions list, choose Optimize, then click on the Apply button

This is how you can convert and optimize an image already uploaded into the Media Library


1. in grid view

1. Choose the image you want to edit.

2. Click on "Edit more details" to edit the image.


1. in list view

1. Click on "Edit" to edit the image.


2. Editing the image

When editing an image, you can find "Lana Image Optimizer" on the right.

1. choose the quality of the image.

2. Click on the "Optimize!" button.



WP-CLI

1. SSH connect

Connect to your server using SSH, the most popular software is PuTTY.

You can request the connection information from your webhosting provider, such as IP address and port, username and password.


2. Download WP-CLI

Download the wp-cli.phar file using curl or wget:

curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar

or:

wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar


3. WP-CLI info

Then, check if it works:

php wp-cli.phar --info


4. WP-CLI lana-image-optimizer

Then you can use the CLI command to optimize. Available command for Lana Image Optimizer:

php wp-cli.phar lana-image-optimizer --quality=75


For more information about the command, use the --help:

php wp-cli.phar lana-image-optimizer --help


More information about the installation: https://wp-cli.org/#installing



Credits