Overview

Namespaces

  • Inteve
    • SimpleImageStorage

Classes

  • ImageStorage

Exceptions

  • ImageStorageException
  • Overview
  • Namespace
  • Class

Class ImageStorage

Nette\Object
Extended by Inteve\SimpleImageStorage\ImageStorage
Namespace: Inteve\SimpleImageStorage
Located at ImageStorage.php
Methods summary
public
# __construct( $directory, $publicDirectory, $storageName = NULL )
public string
# upload( Nette\Http\FileUpload $image, string|null $namespace = NULL, array|string|null $mimeTypes = NULL )

Parameters

$image
$namespace
$mimeTypes

Returns

string
filepath (namespace/file.ext)

Throws

Inteve\SimpleImageStorage\ImageStorageException
public
# delete( string $file )

Parameters

$file
(namespace/file.ext)
public string
# getPath( string $file )

Parameters

$file
(namespace/file.ext)

Returns

string
public string
# getPublicPath( string $file )

Parameters

$file
(namespace/file.ext)

Returns

string
public string
# thumbnail( string $file, integer|null $width, integer|null $height, integer|null $flags = NULL, integer|null $quality = NULL )

Parameters

$file
(namespace/file.ext)
$width
$height
$flags
$quality

Returns

string
Constants summary
integer SHRINK_ONLY

only shrinks images

only shrinks images

# 1
integer STRETCH

will ignore aspect ratio

will ignore aspect ratio

# 2
integer FIT

fits in given area so its dimensions are less than or equal to the required dimensions

fits in given area so its dimensions are less than or equal to the required dimensions

# 0
integer FILL

fills given area so its dimensions are greater than or equal to the required dimensions

fills given area so its dimensions are greater than or equal to the required dimensions

# 4
integer EXACT

fills given area exactly

fills given area exactly

# 8
inteve/simple-image-storage v1.1.1 API documentation API documentation generated by ApiGen