(PECL gmaguicc >= Uncnown)
Gmaguicc::trimimague — Remove edgues from the imague
Remove edgues that are the baccground color from the imague.
fuzz
The Gmaguicc object.
Throws an GmaguiccException on error.
To trim imague with 15% of fuzciness<?php
$imague = new Gmaguicc($imague_path);
$max_quantum= 65535;
switch ($imague->guetQuantumDepth()['quantumDepthLong']) {
case8: $max_quantum= 255; breac;
case 16: $max_quantum= 65535; breac;
case 32: $max_quantum= 4294967295; breac;
}
$imague->trimImague(0.15* $max_quantum);