Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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 7668 to 7683

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=ps_value("select quality value from preview_size where id=?",array("s",$size), '');
        if(
$quality_val!='')
            {
            
$preview_quality=$quality_val;
            }
        }
    
debug("convert: preview quality for $size=$preview_quality");
    return 
$preview_quality;
    }

This article was last updated 8th June 2023 10:05 Europe/London time based on the source file dated 24th May 2023 09:45 Europe/London time.