ImageAdapter
class ImageAdapter extends Adapter implements AdapterInterface
Base image adapter
Methods
static mixed
adapterFor(array $file, string $path)
Locate the first adapter that's able to handle a file.
from Adapter
static boolean
canHandle(array $file, string $temp_path)
Determine if the adapter can handle the file type
__construct($file = null, $temp_path = null)
No description
string
getType()
Adapter type
mixed
getDimensions()
Get the original file dimensions, if possible.
string
toImage(array $size = array(), string $path = false)
Convert to preview image
array
getIptc()
Return all encoded IPTC data
Details
in Adapter at line line 28
static mixed
adapterFor(array $file, string $path)
Locate the first adapter that's able to handle a file.
Each adapter determines its ability to handle a particular file
at line line 25
static boolean
canHandle(array $file, string $temp_path)
Determine if the adapter can handle the file type
at line line 42
__construct($file = null, $temp_path = null)
at line line 52
string
getType()
Adapter type
at line line 65
mixed
getDimensions()
Get the original file dimensions, if possible.
Returns NULL otherwise
at line line 81
string
toImage(array $size = array(), string $path = false)
Convert to preview image
at line line 116
array
getIptc()
Return all encoded IPTC data