Soliloquy Documentation

Documentation, Reference Materials, and Tutorials for Soliloquy

Adjust Image Quality

Important: This doc assumes you’re comfortable creating and/or editing PHP files in your WordPress installation and is intended for advanced users.

You can adjust the image quality for future image uploads to Soliloquy sliders following this guide.

Step 1 – Create Plugin File

The first step is to create a new php file in the wp-content/plugins/ directory of your WordPress installation. The easiest way to do this is using your favorite FTP program or through your web hosting account’s file editor (if they provide one).

Once you’ve navigated to the wp-content/plugins/ directory, create a new file with the name soliloquy-image-quality.php

Step 2 – Edit the New Plugin File

Next, you’ll want to copy and paste the following code into the soliloquy-image-quality.php plugin file you’ve created:

* Plugin Name: Soliloquy - Image Quality
* Plugin URI:
* Version: 1.0
* Author: Tim Carr
* Author URI:
* Description: Override the default image quality when resizing and cropping images
* Override the default image quality when resizing and cropping images
* @param array $args Arguments
* @return array Arguments
function sol_soliloquy_image_quality( $args ) {
	// Either set the value explicitly, or call your custom function which returns the quality value
	$args['quality'] = 80; 
	//$args['quality'] = custom_image_quality($args['quality'])
	return $args;
add_filter( 'soliloquy_crop_image_args', 'sol_soliloquy_image_quality' );

Step 3 – Activate the New Plugin

The last step is to navigate to the WordPress Admin > Plugins screen, locate the plugin named Soliloquy – Image Quality and activate the plugin.

That’s it! You’ve successfully adjusted the image quality for future Soliloquy image uploads!