Bonjour,
J'ai une image qui m'affiche un texte blanc sur fond noir, et j'aimerais la convertir en texte noir sur fond blanc puis l'afficher dans ma page. J'ai essayé d'utiliser IMG_FILTER_NEGATE, sans succès...
Voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10 <?php $img = '<img src="http://www.monsite.com/monimage.php" border="0" /></div> '; $image = imagecreatefrompng($img); imagefilter($image, IMG_FILTER_NEGATE); imagepng($image, 'img_filter_negate.png'); imagedestroy($image); echo $image ; ?>
Pourriez vous m'aider?
Merci
Partager