Imagick::shaveImage

(PECL imagick 2.0.0)

Imagick::shaveImageShaves pixels from the image edges

Description

bool Imagick::shaveImage ( int $columns , int $rows )

Shaves pixels from the image edges. It allocates the memory necessary for the new Image structure and returns a pointer to the new image.

Parameters

columns

rows

Return Values

Returns TRUE on success.

Examples

Example #1 Imagick::shaveImage()

<?php
function shaveImage($imagePath) {
    
$imagick = new \Imagick(realpath($imagePath));
    
$imagick->shaveImage(10050);
    
header("Content-Type: image/jpg");
    echo 
$imagick->getImageBlob();
}

?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
ackg[endiimagiclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Blob cycleColormapImage < iv> uePass=ri uePass=ricycleColormapImage < s=""> e Bimagiimagi imagiimagicycleColormapImage < agick.cDep agick.cDep cycleColormapImage < iv> agick.cD"> agick.cD"> cycleColormapImage < s iv> agick.cD"> s agick.cD"> lipimage.php" title="flipImage">flipImage
  • agick.cExtrema agick.cExtremaipimage.php" title="flipImage">flipImage
  • agick.cKurtosis agick.cKurtosisipimage.php" title="flipImage">flipImage
  • agick.cMea agick.cMea ipimage.php" title="flipImage">flipImage
  • agick.cR agick.cR ipimage.php" title="flipImage">flipImage
  • agick.cSamedstics agick.cSamedsticsipimage.php" title="flipImage">flipImage
  • alipMask alipMaskipimage.php" title="flipImage">flipImage
  • s=""> e f="imagiimagi f="imagiimagiipimage.php" title="flipImage">flipImage
  • a="ims f="imsipimage.php" title="flipImage">flipImage
  • iv> f="imsflipImage
  • flipImage
  • iv> f=m f=m flipImage
  • iv> f=m f=m flipImage
  • iv> D cla iv> D claipimage.php" title="flipImage">flipImage
  • Dep Dep cycleColormapImage < D="iim D="iim cycleColormapImage < D"> D"> cycleColormapImage < Extrema Extremaipimage.php" title="flipImage">flipImage
  • > iv> Fhreode> iv> Fhreode>ipimage.php" title="flipImage">flipImage
  • iv> F/i cl iv> F/i clipimage.php" title="flipImage">flipImage
  • iv> Gmagi iv> Gmagiipimage.php" title="flipImage">flipImage
  • iv> Geometri iv> Geometriipimage.php" title="flipImage">flipImage
  • iv> Grav
  • GravflipImage
  • iv> GreenPass=ri GreenPass=riipimage.php" title="flipImage">flipImage
  • iv> He iv> He ipimage.php" title="flipImage">flipImage
  • iram class=""> iv> H"> iram iv> H"> iramipimage.php" title="flipImage">flipImage
  • iv> Ig an iv> Ig anipimage.php" title="flipImage">flipImage
  • > iv> Igterla hSchee> iv> Igterla hSchee>ipimage.php" title="flipImage">flipImage
  • iv> Igterpop.neMfrom iv> Igterpop.neMfrom ipimage.php" title="flipImage">flipImage
  • Itv> Itv> flipImage
  • Leog iv> Leog ipimage.php" title="flipImage">flipImage
  • licenm iv> M Licenm iv> M Licenm ipimage.php" title="flipImage">flipImage
  • tnus=""> e M tnu iv> M tnuclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < tnu""> s=""> e M tnuimagi M tnuimagiclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < i frypus=""> e Mi fTlloca e Mi fTlloclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Orifnamedivca e Orifnamedivclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Pa Pa clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < s=""> e ick.eimagi ick.eimagiclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e iro hre iro hreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < iro hres iro hresipimage.php" title="flipImage">flipImage
  • iro claies iro claiesipimage.php" title="flipImage">flipImage
  • iv> iv> ipimage.php" title="flipImage">flipImage
  • iv> RedPass=ri RedPass=riipimage.php" title="flipImage">flipImage
  • e Regdiv Regdivclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Ren ngIa hre Ren ngIa hreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Reso iv Reso ivclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e sBlob s cycleColormapImage < e Scene ScenecycleColormapImage < e Signature SignaturecycleColormapImage < e Size SizecycleColormapImage < iv> T sPerShref T sPerShref cycleColormapImage < iv> TotalInkDens
  • TotalInkDenscycleColormapImage < e Tlloca e Tlloclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < Unitsca e Unitsclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < iv> Virtualick.eMfrom iv> Virtualick.eMfrom clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e WhitePoire iv> WhitePoireclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < e Wo us iv> Wo usclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < > igterla hSchee> igterla hSchee>ipimage.php" title="flipImage">flipImage
  • orng and Gess=""> itv> orIg an itv> orIg anipimage.php" title="flipImage">flipImage
  • s Numb iv> sipimage.php" title="flipImage">flipImage
  • e Op iv flipImage
  • ode>> Pack> Nde> Pack> Nde>ipimage.php" title="flipImage">flipImage
  • e Pa cycleColormapImage <
  • or =""> e Pck.eitv> or orclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • or =""> e Pck.eRegdivitv> or orclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • e PoireSize cycleColormapImage < Quantum cycleColormapImage < cycleColormapImage < cycleColormapImage < Regdstri cycleColormapImage < e ReleaseDanu ReleaseDanuclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < cycleColormapImage < e Resour Limie Resour Limieclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < cycleColormapImage < e Size cycleColormapImage < e SizeOffsee cycleColormapImage < cycleColormapImage < hald haldCcycleColormapImage < hasnex hasNex href="ihasNex href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < haspreviou hasPreviou href="ihasPreviou href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < id fy oi cl> id fyF/i cl id fyF/i clclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < id fy id fyhref="iid fyhref=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < implod implod href="iimplod href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < imp
  • imp ick.es"iimpef="imagick.extentimage.php" title="extentImage">extentImage
  • inver e inver e""> tentimage.php" title="extentImage">extentImage
  • labeclass=""> labec labec tentimage.php" title="extentImage">extentImage
  • leveclass=""> levec levec tentimage.php" title="extentImage">extentImage
  • linear
  • linear linear tentimage.php" title="extentImage">extentImage
  • liquidresca"> liquidResca"> liquidResca"> tentimage.php" title="extentImage">extentImage
  • lisiregdstri class=""> lisiRegdstri lisiRegdstritentimage.php" title="extentImage">extentImage
  • assn fy assn fy assn fy tentimage.php" title="extentImage">extentImage
  • as decipherImage
  • tnu tnuF decipherImage
  • edianick.fl edianFck.fl decipherImage
  • erg
  • >erg <>erg cipherimage.php" title="decipherImage">decipherImage
  • in fy ain fy ain fy tentimage.php" title="extentImage">extentImage
  • aodul> aodul> aodul> tentimage.php" title="extentImage">extentImage
  • aonta aonta aonta tentimage.php" title="extentImage">extentImage
  • aorph s aorphiv> s aorphiv> stentimage.php" title="extentImage">extentImage
  • aorphology aorphology aorphologytentimage.php" title="extentImage">extentImage
  • aosaic s aosaiciv> s aosaiciv> stentimage.php" title="extentImage">extentImage
  • ao iv class=""> ao iv extentImage
  • neg> neg> tentimage.php" title="extentImage">extentImage
  • ne n despeckleImage
  • despeckleImage
  • cycleColormapImage <
  • n/i c"> href="in/i c"> href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • oi oi clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • opaque opaque clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • class=""> opi c> clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • ngI Blob ngI Blobclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • ngI Fhre ngI Fhreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • revie iv> s revie iv> sclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • cycleColormapImage < ro hre pro hrehref="ipro hrehref=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < quant quant href="iquant href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < quant s quant href=s"iquant href=sclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • radial cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • read Blob read Blobclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • read Fhre read Fhreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • readiref=s"ireadiref=sclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • i re""> clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • cycleColormapImage <
  • decipherImage
  • decipherImage
  • reaov iro hre reaov iro hrecipherimage.php" title="decipherImage">decipherImage
  • ren ren cipherimage.php" title="decipherImage">decipherImage
  • decipherImage
  • resli i Pa clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < r"size res href="ires href=clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < ro ro href="iro clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • rot> href="irot> tentimage.php" title="extentImage">extentImage
  • rot> ional class=""> rot> ional ional tentimage.php" title="extentImage">extentImage
  • rondi""rnss=""> [endiimrnss=extentImage
  • sampl sampl decipherImage
  • sca"> sca"> tentimage.php" title="extentImage">extentImage
  • segm segm segm tentimage.php" title="extentImage">extentImage
  • selective class=""> selective extentImage
  • separ>
  • separ> agick.c agick.ctentimage.php" title="extentImage">extentImage
  • sepiaton> sepiaTon> tentimage.php" title="extentImage">extentImage
  • setbackgrondi""> s=""> setBackgrondiimagi setBackgrondiimagitentimage.php" title="extentImage">extentImage
  • set "> setf="imsextentImage
  • set "=""> setf=m extentImage
  • set "="">
  • setf=m extentImage
  • set hreode>> setFhreode> setFhreode>tentimage.php" title="extentImage">extentImage
  • set hrststv> or =""> setFhrstitv> or setFhrstitv> ortentimage.php" title="extentImage">extentImage
  • set ores=""> setFore setForetentimage.php" title="extentImage">extentImage
  • set oi cl> setFoi cl setFoi cltentimage.php" title="extentImage">extentImage
  • setirav
  • setGrav
  • extentImage
  • set se se tentimage.php" title="extentImage">extentImage
  • set alpha
  • se Alphaagick.cextentImage
  • set arti > se Arti extentImage
  • set attribut se Attribut extentImage
  • set backgrondi""> s=""> set Backgrondiimagi set Backgrondiimagitentimage.php" title="extentImage">extentImage
  • set bia=""> set Bia= set Bia=tentimage.php" title="extentImage">extentImage
  • set bia=quantum class=""> set Bia=Quantum set Bia=Quantumtentimage.php" title="extentImage">extentImage
  • set bluepass=ri class=""> set BluePass=ri set BluePass=ritentimage.php" title="extentImage">extentImage
  • set bomagi""> s=""> set Bomagiimagi set Bomagiimagitentimage.php" title="extentImage">extentImage
  • set
  • extentImage
  • set lipmask set alipMask set alipMasktentimage.php" title="extentImage">extentImage
  • set magimap""> s=""> set Cmagimapimagi set Cmagimapimagitentimage.php" title="extentImage">extentImage
  • set magi set CmagisextentImage
  • set mmpos set Cmmpos reset Cmmpos tentimage.php" title="extentImage">extentImage
  • set mmp"> set Cmmp extentImage
  • set mmp">
  • set Cmmp extentImage
  • set d cla class=""> set D cla set D clatentimage.php" title="extentImage">extentImage
  • set d p set Dep set Dep tentimage.php" title="extentImage">extentImage
  • set dispos set Dispos set Dispos tentimage.php" title="extentImage">extentImage
  • set ex hres=""> set Ex hre set Ex hretentimage.php" title="extentImage">extentImage
  • set hreode>> set Fhreode> set Fhreode>tentimage.php" title="extentImage">extentImage
  • set oi cl> set Foi cl set Foi cltentimage.php" title="extentImage">extentImage
  • set gamma> set Gamma set Gammatentimage.php" title="extentImage">extentImage
  • set grav
  • set Grav
  • extentImage
  • set greenpass=ri class=""> set GreenPass=ri set GreenPass=ritentimage.php" title="extentImage">extentImage
  • set ng and Gess=""> set Ig an set Ig antentimage.php" title="extentImage">extentImage
  • set ngterla hschee>> set Igterla hSchee> set Igterla hSchee>tentimage.php" title="extentImage">extentImage
  • set ngter olate from > set Igter olateMfrom set Igter olateMfrom tentimage.php" title="extentImage">extentImage
  • set ntv> set Itv> extentImage
  • set > tnus=""> set M tnu set M tnutentimage.php" title="extentImage">extentImage
  • set > tnu""> s=""> set M tnuimagi set M tnuimagitentimage.php" title="extentImage">extentImage
  • set o set OextentImage
  • set orifnamedivs=""> set Orifnamedivcaset Orifnamedivtentimage.php" title="extentImage">extentImage
  • set =""> s/div> Pa caset Pa clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set ro hres=""> set Pro hre set Pro hreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set ro clai class=""> set Pro set Pro clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set redpass=ri class=""> set RedPass=ri set RedPass=riclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set ren ngia hres=""> set Ren ngIa hre set Ren ngIa hreclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set reso ivs=""> set Reso iv set Reso ivclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set scenes=""> set Scene set Sceneclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set t s shref > set T sPerShref set T sPerShref clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set typus=""> set Tllocaset Tlloclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set units set Unitscaset Unitsclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set virtual ck.e from > set Virtualick.eMfrom set Virtualick.eMfrom clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set whitepoires=""> set WhitePoire set WhitePoireclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < set gterla hschee>> set gterla hSchee> set gterla hSchee>tentimage.php" title="extentImage">extentImage
  • set tv> orng and Gess=""> s itv> orIg an s itv> orIg antentimage.php" title="extentImage">extentImage
  • set tstv> or =""> setLastitv> or setLastitv> ortentimage.php" title="extentImage">extentImage
  • setop ivs=""> se Op iv s/dOp ivipimage.php" title="flipImage">flipImage
  • slipa =""> se Pa s/dPa clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < sli oiresizes=""> se PoireSize s/dPoireSizeclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < sli rog mivstor =""> setProg Mivstor s/dProg Mivstorclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < sliregdstri class=""> s Regdstri s/dRegdstriclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < slireso ivs=""> setReso iv setReso ivclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < setresour limies=""> se Resour Limie se Resour Limieclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < setsampling ims s SamplingF ims s SamplingF imsclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < setsizes=""> se Size s/dSizeclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < slisizeoffsees=""> se SizeOffsee s/dSizeOffseeclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < seetypus=""> setTllocasetTlloclecolormapimage.php" title="cycleColormapImage">cycleColormapImage < shad shad cashad clecolormapimage.php" title="cycleColormapImage">cycleColormapImage < shado shado cashadoick.despeckleimage.php" title="despeckleImage">despeckleImage
  • despeckleImage
  • currhre
  • decipherImage
  • sheaa casheaa cipherimage.php" title="decipherImage">decipherImage
  • sigmoidalContr t casigmoidalContr t cipherimage.php" title="decipherImage">decipherImage
  • sk < cask tentimage.php" title="extentImage">extentImage
  • smush s smush s smush stentimage.php" title="extentImage">extentImage
  • solarize solarize casolarize tentimage.php" title="extentImage">extentImage
  • spa shre> i spa shC"> tentimage.php" title="extentImage">extentImage
  • splice splice extentImage
  • spreadi spread cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • cycleColormapImage <
  • t t clecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • _​_​toSaring">_​_​toSaringclecolormapimage.php" title="cycleColormapImage">cycleColormapImage <
  • extentImage
  • t magi t CmagisextentImage
  • t par
  • t par t par tentimage.php" title="extentImage">extentImage
  • t pos > t pos extentImage
  • t v sh > t v sh extentImage
  • t i extentImage
  • unique magi unique Cmagistentimage.php" title="extentImage">extentImage
  • unsharpmask extentImage
  • vali > vali ">vali tentimage.php" title="extentImage">extentImage
  • vignet vignet vignet tentimage.php" title="extentImage">extentImage
  • wav wav cawav cipherimage.php" title="decipherImage">decipherImage
  • decipherImage
  • decipherImage
  • wri Fhre wri Fhrecipherimage.php" title="decipherImage">decipherImage
  • wri s wri stentimage.php" title="extentImage">extentImage
  • wri s hres=""> wri sFhre wri sFhrecipherimage.php" title="decipherImage">decipherImage
  • decipherImage decipherImage cipside> ">cidiv>