Re: resampling a png results in terrible output quality
Posted: 2007-11-26T13:58:42-07:00
This gave a resonable result for me:
The Blackman filter looks quite good; do you have access to php ? If you do try this code for the other filters if not PM me a link to an image and I will run it for you.
Code: Select all
convert test.png -resize 65x38 -filter Blackman testout2.png
Code: Select all
<?php
// Build the array of filters to be used
exec("convert -list filter", $IMarray, $code);
// Start the loop to resize with the different filters
foreach ($IMarray as $value) {
$new_name = $value."_resize.jpg";
exec ("convert test.png -filter $value -resize 100x100 $new_name");
echo "<br><img src=\"".$new_name."\"width=\"100\"><br>";
echo $value;
}
?>