LTMagic/TDraw Wiki
Wrappers for ImageMagick for PHP for true object oriented scripting
Brought to you by:
skepticalee
The list of supported Imagick/ImagickDraw functions and methods is current as of February 1, 2020. See [Suggested Parameter Variable Names] for parameter usage hints.
| LTMagic | extends Imagick | Parameters | Returns |
|---|---|---|---|
| LTMadd | addImage | $im | LTMagic |
| LTMalpha | get/setImageAlphaChannel | $p = null | null: Integer, else: LTMagic |
| LTMappend | appendImages preceded by resetIterator | $b | LTMagic |
| LTMartifact | get/set/deleteImageArtifact | $s, $v = null | $v = null: String, else: LTMagic |
| LTMautogamma | autoGammaImage | void | LTMagic |
| LTMautolevel | autoLevelImage | $ch = "default" | LTMagic |
| LTMautorotate | rotateImage (LTMrotate) | void | LTMagic |
| LTMbackground | get/setImageBackgroundColor | $c | $c = null: ImagickPixel, else: LTmagic |
| LTMblob | getImage(s)Blob/readImageBlob | $s = null, $fn = null | $s = null: String, else: LTMagic |
| LTMblur | blurImage | $r, $si | LTMagic |
| LTMborder | borderImage | $c, $w, $h | LTMagic |
| LTMchannelmean | getImageChannelMean | $ch = "all" | Array |
| LTMchannelrange | getImageChannelRange | $ch = "all" | Array |
| LTMcharcoal | charcoalImage | $r, $si | LTMagic |
| LTMclear | clear | void | LTMagic |
| LTMcolorspace | get/setColorSpace, get/setImageColorSpace | $s = null | $s = null: Integer else: LTMagic |
| LTMcombine | combineImages | $ch | LTMagic |
| LTMcomposite | compositeImage | $im, $m, $x = 0, $y = 0 | LTMagic |
| LTMcompress | get/setImageCompression | $m = null | null: Integer, else: LTMagic |
| LTMcompress_quality | get/setImageCompressionQuality | $v = null | null: Integer, else: LTMagic |
| LTMconst2str | ReflectionClass: getConstants | $ch, $n | Array of $n, String with constants |
| LTMcontrast | contrastImage | $n | LTMagic |
| LTMcontraststretch | contrastStretchImage | $bl, $wh, $ch = "all" | LTMagic |
| LTMcount | getNumberImages | void | Integer |
| LTMcrop | cropImage | $w, $h, $x, $y | LTMagic |
| LTMdepth | get/setImageChannelDepth | $d = null, $ch = "all", $m = true | null: CHANNEL constant, else: LTMagic |
| LTMdespeckle | despeckleImage | void | LTMagic |
| LTMdistort | distortImage | $m, $va, $bf | LTMagic |
| LTMdraw | drawImage | $dr | empty TDraw |
| LTMedge | edgeImage | $r = 0 | LTMagic |
| LTMemboss | embossImage | $r, $si | LTMagic |
| LTMempty | clear | void | empty LTMagic |
| LTMenhance | enhanceImage | void | LTMagic |
| LTMequal | equalizeImage | void | LTMagic |
| LTMevaluate | evaluateImage | $m, $v, $c | LTMagic |
| LTMeval_series | evaluateImages | $m | LTMagic |
| LTMexportpixels | exportImagePixel | $x, $y, $w, $h, $t, $f | Array |
| LTMextent | extentImage | $w, $h, $x, $y | LTMagic |
| LTMfilename | get/setImageFileName | $s = null | $s = null: String, else: LTMagic |
| LTMfirst | setFirstIterator | void | LTMagic |
| LTMflip | flipImage | void | LTMagic |
| LTMfloodfill | floodFillPaintImage | $c, $p, $impx, $x, $y, $b, $ch = "default" | LTMagic |
| LTMflop | flopImage | void | LTMagic |
| LTMformat | get/setImageFormat, setFormat | $s = null | $s = 0: String, else: LTMagic |
| LTMfunction | functionImage | $f, $v | LTMagic |
| LTMfx | fxImage | $s | LTMagic |
| LTMgauss | gaussianBlurImage | $r, $si | LTMagic |
| LTMgamma | gammaImage | $ga, $ch="all" | LTMagic |
| LTMgeometry | getImageGeometry | void | Array ($w, $h) |
| LTMhistogram | getImageHistogram | void | Array of ImagePixel objects |
| LTMimagetype | get/setImageType | $t = null | null: IMGTYPE constant, else: LTMagic |
| LTMimportpixels | importImagePixels | $x, $y, $w, $h, $t, $f, $v | LTMagic |
| LTMlast | setLastIterator | void | LTMagic |
| LTMlevel | levelImage | $bl, $ga, $wh, $ch = "all" | LTMagic |
| LTMlinearstretch | linearStretchImage | $bl, $wh | LTMagic |
| LTMmatte | get/setImageMatte | $b = null | null: Boolean; else: LTMagic |
| LTMmedianfilter | medianFilterImage | $r | LTMagic |
| LTMmerge | mergeImageLayers | $m | LTMagic |
| LTMmodulate | modulateImage | $br, $sa, $hu | LTMagic |
| LTMmorph | morphImages | $n | LTMagic |
| LTMnegate | negateImage | $p | LTMagic |
| LTMnext | hasNextImage | void | true: LTMagic, else: false |
| LTMnew | newImage | $w, $h, $c | LTMagic |
| LTMnewpseudo | newPseudoImage | $w, $h, $p | LTMagic |
| LTMnormal | normalizeImage | $ch | LTMagic |
| LTMoilpaint | oilPaintImage | $r | LTMagic |
| LTMoption | get/setOption | $s, $v = null | null: value, else: LTMagic |
| LTMorient | get/setImageOrientation | $s = null | null: String. else: LTMagic |
| LTMpage | get/setImagePage | $d = null | null: Array (image page), else LTMagic |
| LTMpixelcolor | getImagePixelColor, followed by getColor | $x, $y | Array of r, g, b, a |
| LTMposter | posterizeImage | $n, $b = false | LTMagic |
| LTMprevious | hasPreviousImage | void | true: LTMagic, else: false |
| LTMquantumrange | getImageQuantumRange | void | Integer |
| LTMread | readImage, defaulting to current directory | $f, $d = null | LTMagic |
| LTMreducenoise | reduceNoiseImage | $r = 0 | LTMagic |
| LTMremove | removeImage | void | LTMagic |
| LTMreplace | LTMempty then LTMadd | $im | LTMagic |
| LTMresize | resizeImage | $w, $h, $f, $sh = 1 | LTMagic |
| LTMresolution | get/setImageUnits followed by get/setImageResolution | $p = null, $u = null | null: Array (units: Integer, resolution: Array (Integer, Integer)), else: LTMagic |
| LTMroll | rollImage | $x, $y | LTMagic |
| LTMrotate | rotateImage | $c, $a | LTMagic |
| LTMscale | scaleImage | $w, $h | LTMagic |
| LTMseparatechannel | separateChannelImage | $ch | LTMagic |
| LTMsepia | sepiaToneImage | $th | LTMagic |
| LTMshade | shadeImage | $gr, $az, $el | LTMagic |
| LTMshadow | LTMbackground, shadowImage, compositeImage | $op, $si, $c = "black", $x = 0, $y = 0 | LTMagic |
| LTMsharpen | sharpenImage | $r, $si, $ch = "all" | LTMagic |
| LTMsigmoidcontrast | sigmoidalContrastImage | $sh, $al, $be, $ch = "all" | LTMagic |
| LTMsketch | sketchImage | $r, $si, $an | LTMagic |
| LTMsolar | solarizeImage | $th | LTMagic |
| LTMstatistic | statisticImage | $m, $w, $h, $ch = "all" | LTMagic |
| LTMtextWidth | queryFontMetrics | $dr, $text = "XXX" | Float |
| LTMthreshold | thresholdImage | $p | LTMagic |
| LTMtint | timtImage | $c, $op | LTMagic |
| LTMtranspose | transposeImage | void | LTMagic |
| LTMtrim | trimImage, setImagePage | $v | LTMagic |
| LTMunsharp | unsharpMaskImage | $r, $s, $a, $t | LTMagic |
| LTMversion | getVersion | void | String |
| LTMvignette | vignetteImage | $bl, $wh, $x, $y | LTMagic |
| LTMvirtualpixel | get/setImageVirtualPixelMethod | $m | null: Integer; else: LTMagic |
| LTMwaveletdenoise | waveletDenoiseImage | $p | LTMagic |
| LTMwrite | writeImage, defaulting to current directory | $f, $d = null, $ap = false | LTMagic |
| TDraw | extends ImagickDraw | Parameters | Returns |
|---|---|---|---|
| Talign | get/setTextAlignment | $p = null | null: Integer, else:TDraw |
| Tbezier | bezier | $p | TDraw |
| Tcircle | circle | $x, $y, $r | TDraw |
| Tcolor | get/setFillcolor | $p = null | null:ImagickPixel, else:TDraw |
| TdrawOn | drawImage, clears TDraw object | $im | LTMagic |
| Tellipse | ellipse | $x, $y, $w, $h, $a1 = 0, $a2 = 360 | TDraw |
| Tfont | get/setFont | $p = null | null: String, else TDraw |
| Tline | line, polyline, polygon | $p, $cl = false | TDraw |
| Tlinespace | get/setTextInterlineSpacing | $y = null | null: Float, else: TDraw |
| Topacity | get/setFillOpacity | $p = null | null: Float, else: TDraw |
| Tpoint | point | $x, $y | TDraw |
| Trectangle | rectangle | $x1, $y1, $x2, $y2 | TDraw |
| Tregularpolygon | calculates and draws regular polygon with n lines | $n, $x, $y, $w, $h = 0, $an = 0 | TDraw |
| Trotate | Ttranslate, rotate, TTranslate | $an, $x = 0, $y = 0 | TDraw |
| Troundrectangle | roundrectangle | $x1, $y1, $x2, $y2, $w, $h | TDraw |
| Tsector | draws true sector from ellipse and radial lines | $x, $y, $w, $h, $an1, $an2 | TDraw |
| Tsize | get/setFontSize | $p = null | null: Float, else: TDraw |
| TslCap | get/setStrokeLineCap | $p = null | null: Integer, else: TDraw |
| TslJoin | get/setStrokeLineJoin | $p = null | null: Integer, else: TDraw |
| TstrokeAAlias | get/setStrokeAntiAlias | $p = null | null: Boolean, else: TDraw |
| TstrokeColor | get/setStrokeColor | $p = null | null: ImagickPixel, else: TDraw |
| TstrokeOpacity | get/setStrokeOpacity | $p = null | null: Float, else: TDraw |
| TstrokeWidth | get/setStrokeWidth | $p = null | null: Float, else: TDraw |
| Ttext | annotation | $x, $y, $t | TDraw |
| TtextAAlias | get/setTextAntiAlias | $p = null | null: Boolean, else: TDraw |
| Ttranslate | translate | $x, $y | TDraw |
| Twordspace | get/setTextInterwordSpacing | $x = null | null: Float, else: TDraw |