LOL


ti chiedo scusa, forse ero in preda all'alcol quando l'ho provato e magari lo provavo con img aventigià sfondo bianco...perché oggi il cliente mi ha chiamato e il problema esiste tutt'ora

io ho usato questo codice:
Codice PHP:
if ($old_ext=="GIF"){
    
$tpcolor=imagecolorat($source00);
    
// in the real world, you'd better test all four corners, not just one!
    
imagepalettecopy($thumb2$source);
    
imagecopyresized($thumb2$source0000,THUMB_WIDTH_SCHEDA,$thumbHeightScheda,$width,$height);
    
$pixel_over_black imagecolorat($thumb200);
    
// ...but now make the fill white...
        
$bg imagecolorallocate($thumb2255255255);
        
imagefilledrectangle($thumb200THUMB_WIDTH_SCHEDA$thumbHeightScheda$bg);
        
imagecopyresized($thumb2$source0000THUMB_WIDTH_SCHEDA$thumbHeightScheda$width$height);
        
$pixel_over_white imagecolorat($thumb200);
        
// ...to test if transparency causes the fill color to show through:
        
if($pixel_over_black != $pixel_over_white){
      
// Background IS transparent
          
imagefilledrectangle($thumb200THUMB_WIDTH_SCHEDA$thumbHeightScheda$tpcolor);
      
imagecopyresized($thumb2$source0000THUMB_WIDTH_SCHEDA$thumbHeightScheda$width$height);
      
imagecolortransparent($thumb2$tpcolor);
        }


e purtroppo ho notato che con l'img che mi ha passato lui mi mette ancora lo sfondo nero...

facendo comunque il resize giusto...




sai/sapete darmi una mano?