Subversion Repositories eFlore/Projets.eflore-projets

Rev

Rev 677 | Rev 797 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 677 Rev 719
Line 456... Line 456...
456
	}
456
	}
Line 457... Line 457...
457
 
457
 
458
	private function indexerFichierPng($fichierPng) {
458
	private function indexerFichierPng($fichierPng) {
459
		$img = imagecreatefrompng($fichierPng);
459
		$img = imagecreatefrompng($fichierPng);
-
 
460
		imagetruecolortopalette($img, false, 32);
-
 
461
		$blanc = imagecolorallocate($img, 255, 255, 255);
460
		imagetruecolortopalette($img, false, 32);
462
		imagefill($img, 0, 0, $blanc);
461
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
463
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
Line 462... Line 464...
462
	}
464
	}
463
 
465