db
ImageResizer Class Reference

Public Member Functions

 __construct ()
 

Static Public Member Functions

static run ($filename, $baseDir, $params, $tweekFactor=1.65)
 
static computeMemoryNeeds ($size, $tweekFactor=1.65)
 
static isPicture ($file)
 
static getNewImageSize ($original_size, $required_size)
 
static getNewCoverImageSize ($original_size, $required_size)
 
static resizerParams ($params=array())
 
static resizer ($filename, $new_size, $sourceDir, $targetDir, $targetFileName=null, $params=array())
 

Static Public Attributes

static $VERSION = '1.0'
 

Static Protected Attributes

static $defaultThumbsdir = 'thumbs/'
 

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Member Function Documentation

◆ computeMemoryNeeds()

static computeMemoryNeeds (   $size,
  $tweekFactor = 1.65 
)
static

◆ getNewCoverImageSize()

static getNewCoverImageSize (   $original_size,
  $required_size 
)
static

Provede prepocet velikosti puvodniho obrazku na pozadovane rozmery tak, aby se dalo prekryt pozadovanymy rozmery

Parameters
array$original_size
array$required_sizepublic
Returns
array

◆ getNewImageSize()

static getNewImageSize (   $original_size,
  $required_size 
)
static

Provede prepocet velikosti puvodniho obrazku na pozadovane rozmery.

Parameters
array$original_size
array$required_sizepublic
Returns
array

◆ isPicture()

static isPicture (   $file)
static

◆ resizer()

static resizer (   $filename,
  $new_size,
  $sourceDir,
  $targetDir,
  $targetFileName = null,
  $params = array() 
)
static

provede vlastni zmenu rozmeru obrazku

Parameters
string$filename
array$new_size
string$sourceDir
string$targetDirprotected
Returns
bool

◆ resizerParams()

static resizerParams (   $params = array())
static

Wrapper pro resizer

Parameters
type$sourceFile
type$sourceDir
type$targetDir
type$newSize
type$params- [targetFile]

◆ run()

static run (   $filename,
  $baseDir,
  $params,
  $tweekFactor = 1.65 
)
static

zastresujici fce pro zmenu velikosti

$params['width'] = jakou bude mit obrazek sirku $params['height'] = jakou bude mit obrazek vysku $params['thumbs'][] = array('dir'=> , 'width' =>, 'height' => );

Parameters
string$filenamejmeno souboru
string$baseDirzdrojovy adresar
array$paramsparametry public
Returns
bool

Member Data Documentation

◆ $defaultThumbsdir

$defaultThumbsdir = 'thumbs/'
staticprotected

◆ $VERSION

$VERSION = '1.0'
static

The documentation for this class was generated from the following file: