Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

get_preview_quality()

Description

Get quality value for a given preview size.

Parameters

ColumnTypeDefaultDescription
$size string ID of preview size

Return

int

Location

include/resource_functions.php lines 6904 to 6919

Definition

 
function get_preview_quality($size)
    {
    global 
$imagemagick_quality,$preview_quality_unique;
    
$preview_quality=$imagemagick_quality// default
    
if($preview_quality_unique)
        {
        
debug("convert: select quality value from preview_size where id='$size'");
        
$quality_val=sql_value("select quality value from preview_size where id='{$size}'",'');
        if(
$quality_val!='')
            {
            
$preview_quality=$quality_val;
            }
        }
    
debug("convert: preview quality for $size=$preview_quality");
    return 
$preview_quality;
    }

This article was last updated 10th July 2020 22:05 Europe/London time based on the source file dated 10th July 2020 16:06 Europe/London time.