Méthode |
Description |
|
__call ( $methodName, $args ) |
Generic function. |
|
__construct ( $originalFile = null, $width = null, $height = null ) |
|
|
__toString ( ) |
Tostring defaults to jpeg. |
|
applyOperations ( ) |
Applies the operations. |
|
cacheData ( string $type = 'jpg', integer $quality = 80 ) |
Get cache data (to render the image). |
|
cacheFile ( string $type = 'jpg', integer $quality = 80, $actual = false ) |
Gets the cache file name and generate it if it does not exists. |
|
correct ( ) |
Tells if the image is correct. |
|
create ( $width, $height ) |
Creates an instance of a new resource. |
|
fromData ( $data ) |
Creates an instance of image from its data. |
|
fromFile ( string $originalFile ) |
Defines the file only after instantiation. |
|
fromResource ( $resource ) |
Creates an instance of image from resource. |
|
generateHash ( $type = 'guess', $quality = 80 ) |
Generates the hash. |
|
get ( $type = 'guess', $quality = 80 ) |
Get the contents of the image. |
|
getAdapter ( ) : Gregwar\Image\Adapter\AdapterInterface |
|
|
getCacheFallback ( ) |
Gets the fallback into the cache dir. |
|
getCacheSystem ( ) : Gregwar\Cache\CacheInterface |
Get the cache system. |
|
getDependencies ( ) : string[] |
Get all the files that this image depends on. |
|
getFallback ( ) |
Gets the fallack image path. |
|
getFilePath ( ) : mixed |
Get the file path. |
|
getHash ( $type = 'guess', $quality = 80 ) |
Gets the hash. |
|
gif ( ) |
Generates and output a gif cached file. |
|
guess ( $quality = 80 ) |
Generates and output an image using the same type as input. |
|
guessType ( ) |
Guess the file type. |
|
height ( ) |
Image height. |
|
html ( $title = '', $type = 'jpg', $quality = 80 ) |
Returning basic html code for this image. |
|
init ( ) |
Initialize the adapter. |
|
inline ( $type = 'jpg', $quality = 80 ) |
Returns the Base64 inlinable representation. |
|
jpeg ( $quality = 80 ) |
Generates and output a jpeg cached file. |
|
open ( $file = '' ) |
Creates an instance, usefull for one-line chaining. |
|
png ( ) |
Generates and output a png cached file. |
|
save ( $file, $type = 'guess', $quality = 80 ) |
Save the file to a given output. |
|
serializeOperations ( ) |
Serialization of operations. |
|
setActualCacheDir ( $actualCacheDir ) |
The actual cache dir. |
|
setAdapter ( $adapter ) |
|
|
setCacheDir ( $cacheDir ) |
Change the caching directory. |
|
setCacheDirMode ( integer $dirMode ) |
|
|
setCacheSystem ( Gregwar\Cache\CacheInterface $cache ) |
Set the cache system. |
|
setData ( $data ) |
Sets the image data. |
|
setFallback ( $fallback = null ) |
Sets the fallback image to use. |
|
setForceCache ( $forceCache = true ) |
Enable or disable to force cache even if the file is unchanged. |
|
setPrettyName ( $name, $prefix = true ) |
Sets the pretty name of the image. |
|
setResource ( $resource ) |
Sets the resource. |
|
useFallback ( $useFallbackImage = true ) |
Use the fallback image or not. |
|
width ( ) |
Image width. |
|