Subversion Repositories eFlore/Projets.eflore-projets

Rev

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

Rev 268 Rev 270
Line 452... Line 452...
452
	}
452
	}
Line 453... Line 453...
453
 
453
 
454
	private function indexerFichierPng($fichierPng) {
454
	private function indexerFichierPng($fichierPng) {
455
		$img = imagecreatefrompng($fichierPng);
455
		$img = imagecreatefrompng($fichierPng);
456
		imagetruecolortopalette($img, false, 32);
-
 
457
		imagealphablending($img, false);
-
 
458
		$alpha = imagecolorallocatealpha($img, 0, 0, 0, 127);
-
 
459
		imagefill($img, 0, 0, $alpha);
-
 
460
		imagesavealpha($img, true);
456
		imagetruecolortopalette($img, false, 32);
461
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
457
		imagepng($img, $fichierPng, 9, PNG_ALL_FILTERS);
Line 462... Line 458...
462
	}
458
	}
463
 
459