Utility class to manipulate image
| package |
jelix |
|---|---|
| subpackage |
utils |
| static |
computeUrlFilePath( $config = null, $src = null) : \array.
\array.keys are src_url, src_path, cache_path, cache_url
createShadow( $image, array $params) : resource
arrayparameters for the url
resourcethe image with shadow
get(string $src, array $params = array(), $sendCachePath = true, array $config = null) : array
parameters list some induce transformations, some not
class :string id :string alt :string width :uint height :uint maxwidth :uint only with maxheight maxheight :uint only with maxwidth zoom 1-100 omo :boolean alignh [left|center|right|:int] alignv [top|center|bottom|:int] ext [png|jpg|gif] quality 0-100 if ext = jpg shadow :boolean soffset :uint sangle :uint sblur :uint sopacity :uint scolor #000000 :string background #000000 :string
gif -> image/gif jpeg -> image/jpeg jpg -> image/jpeg jpe -> image/jpeg xpm -> image/x-xpixmap xbm -> image/x-xbitmap wbmp -> image/vnd.wap.wbmp png -> image/png other -> image/png
stringthe path to the source image, relative to the www directory or relative to the path indicated into the configuration. The filename should have one of these extensions: gif,jpeg,jpg,jpe,xpm,xbm,wbmp,png
arrayparameters specifying image
arraythe paths configuration. should contain same parameters as you find in the imagemodifier section of the configuration. give these array if you want to override the configuration.
arraylist of attributes
transformImage(string $srcFs, string $targetPath, string $targetName, array $params)
stringthe path to the image to transform. [gif|jpeg|jpg|jpe|xpm|xbm|wbmp|png]
stringthe path of the directory to store the resulting image
stringthe filename of the resulting image
arrayparameters specifying transformations
transformParams : array
| var |
|---|
array
attributeParams : array
| var |
|---|
array
mimes :