…
…
SCALA GRIGI
//to black and white if(!file_exists('dw-bw.png')) { $img = imagecreatefrompng('dw-manipulate-me.png'); imagefilter($img,IMG_FILTER_GRAYSCALE); imagepng($img,'db-bw.png'); imagedestroy($img); }
NEGATIVO
//to negative if(!file_exists('dw-negative.png')) { $img = imagecreatefrompng('dw-manipulate-me.png'); imagefilter($img,IMG_FILTER_NEGATE); imagepng($img,'db-negative.png'); imagedestroy($img); }
COLOR SEPPIA
//to black and white if(!file_exists('dw-sepia.png')) { $img = imagecreatefrompng('dw-manipulate-me.png'); imagefilter($img,IMG_FILTER_GRAYSCALE…
…
Codice Sorgente: http://nettuts.s3.amazonaws.com/381_onlineStorage/SOURCE.zip…
function create_img_gd($imgfile, $imgthumb, $newwidth) {
if (function_exists(“imagecreate”)) {
$imginfo = getimagesize($imgfile);
switch($imginfo[2]) {
case 1:
$type = IMG_GIF;
break;
case 2:
$type = IMG_JPG;
break;
case 3:
$type = IMG_PNG;
break;
case 4:
$type = IMG_WBMP;
break;
default:
return $imgfile;
break;
}
switch($type) {
case IMG_GIF:
if (!function_exists(“imagecreatefromgif”)) return $imgfile;
$srcImage = imagecreatefromgif(“$imgfile”);
break;
case IMG_JPG:
if (!function_exists(“imagecreatefromjpeg”)) return $imgfile;
$srcImage = imagecreatefromjpeg($imgfile);
break;
case IMG_PNG:
if(!function_exists(“imagecreatefrompng”)) return $imgfile;
$srcImage = imagecreatefrompng(“$imgfile”);
break;
case IMG_WBMP:
if (!function_exists(“imagecreatefromwbmp”)) return $imgfile;
$srcImage = imagecreatefromwbmp(“$imgfile”);
break;
default:
return $imgfile;
}
if ($srcImage){
$srcWidth = $imginfo[0];
$srcHeight = $imginfo[1];
$ratioWidth = $srcWidth / $newwidth;
$destWidth = $newwidth;
$destHeight = $srcHeight / $ratioWidth;
$destImage = …

smart image resizer è uno script php che ti permette di ridurre al volo la dimensione delle immagini jpg.
Sito web: http://shiftingpixel.com/2008/03/03/smart-image-resizer/…

Sito web: http://reflection.corephp.co.uk/…
aPop è uno script per la gestione di una galleria di immagini in AJAX, PHP e MYSQL
Sito web: http://www.maxkiesler.com/apop/…
Image Resize Wizard è uno script php che puoi aggiungere al tuo sito web che permette ai tuoi visitatori di rimpicciolire le loro immagini in maniera molto facile. Facile da installare.
Sito web: http://www.impliedbydesign.com/image-resize-wizard.html…
phpthumb è un software veramente flessibile per la creazione di thumbnail.Prende come input una immagine e ne ritorna come output una piu larga o piu stretta,una porzione di essa, con o senza bordi personalizzati e colori di sfondo. I files possono essere locali o online.
Sito web: http://phpthumb.sourceforge.net/ …