no save
Assistance
Achat
News

Forum | webmastering
antialiasing d'un jpeg avec GD 2.0 et php
PhP, le jeu. 03 juil. 2003 à 22:12:17
Bsr

Bizarre car en utilisant le script suivant avec GD 2 pour faire des thumbnails j'obtiens des résultats tout à fait convenable.

<?php
$source="image.jpg";
$src_img = ImageCreateFromJPEG($source);

$factor=8;
$dst_width=ImageSX($src_img)/$factor;
$dst_height=ImageSY($src_img)/$factor;
$dst_img = ImageCreateTrueColor($dst_width,$dst_height);

ImageCopyResampled($dst_img,$src_img,0,0,0,0,$dst_width,
$dst_height,ImageSX($src_img),ImageSY($src_img));
imagejpeg($dst_img);

imagedestroy($src_img);
imagedestroy($dst_img);
?>


Pourrais-tu mettre en ligne ton image en taille réelle afin qu'on puisse tester ?

@+

PhP    [Push the button,Don't push the
.         button,Trip the station,Change the channel]
PrécédentEaulive
juil. 03
Marco_src02
juil. 03
Suivant
REPONSES
Eaulive
juil. 03
PhP
juil. 03
Marco_src02
juil. 03
PhP
juil. 03
Marco_src02
juil. 03
Marco_src02
juil. 03
alex
janv. 07
santa maria
nov. 07
Version Web
Réalisé par RedShift
no save